]> git.decadent.org.uk Git - dak.git/log
dak.git
15 years agoupdate db
Joerg Jaspert [Mon, 16 Feb 2009 21:30:24 +0000 (22:30 +0100)]
update db

(hopefully) fix the bug that dak update-db happily ignores errors
from the update scripts, going on with all the other following updates.
Which isn't all that helpful.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoIts base, not basedir
Joerg Jaspert [Sun, 15 Feb 2009 15:38:51 +0000 (16:38 +0100)]
Its base, not basedir

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoits lenny not Lenny
Joerg Jaspert [Sun, 15 Feb 2009 15:29:58 +0000 (16:29 +0100)]
its lenny not Lenny

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoMerge branch 'master' into bpo
Joerg Jaspert [Sun, 15 Feb 2009 15:28:11 +0000 (16:28 +0100)]
Merge branch 'master' into bpo

* master:
  one more squeeze
  its filenames, not filename
  Squeeze is now testing
  security stuff
  Also modified ddtp-i18n-check for squeeze
  i18n for squeeze
  Remove lenny-r0 specials
  Add security support for the lenny release
  First pass at lenny release branch
  url
  remove backwards-compatiblity stuff which is no longer needed

15 years agoone more squeeze
Joerg Jaspert [Sun, 15 Feb 2009 13:56:32 +0000 (14:56 +0100)]
one more squeeze

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoits filenames, not filename
Joerg Jaspert [Sat, 14 Feb 2009 19:57:49 +0000 (20:57 +0100)]
its filenames, not filename

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoMerge commit 'stew/master' into merge
Joerg Jaspert [Sat, 14 Feb 2009 19:56:30 +0000 (20:56 +0100)]
Merge commit 'stew/master' into merge

* commit 'stew/master':
  Squeeze is now testing

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoSqueeze is now testing
Mike O'Connor [Sat, 14 Feb 2009 18:26:04 +0000 (13:26 -0500)]
Squeeze is now testing

Signed-off-by: Mike O'Connor <stew@vireo.org>
15 years agosecurity stuff
Joerg Jaspert [Sat, 14 Feb 2009 16:15:36 +0000 (17:15 +0100)]
security stuff

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoAlso modified ddtp-i18n-check for squeeze
Joerg Jaspert [Sat, 14 Feb 2009 14:34:13 +0000 (15:34 +0100)]
Also modified ddtp-i18n-check for squeeze

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoi18n for squeeze
Joerg Jaspert [Sat, 14 Feb 2009 14:33:23 +0000 (15:33 +0100)]
i18n for squeeze

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoRemove lenny-r0 specials
Joerg Jaspert [Sat, 14 Feb 2009 14:28:27 +0000 (15:28 +0100)]
Remove lenny-r0 specials

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoMerge commit 'mhy/lenny-prepare' into merge
Joerg Jaspert [Sat, 14 Feb 2009 11:31:50 +0000 (12:31 +0100)]
Merge commit 'mhy/lenny-prepare' into merge

* commit 'mhy/lenny-prepare':
  Add security support for the lenny release
  First pass at lenny release branch
  remove backwards-compatiblity stuff which is no longer needed

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoMerge branch 'master' into merge
Joerg Jaspert [Sat, 14 Feb 2009 10:54:56 +0000 (11:54 +0100)]
Merge branch 'master' into merge

* master:
  security install
  security_install

15 years agoAnd module string
Joerg Jaspert [Fri, 13 Feb 2009 22:07:38 +0000 (23:07 +0100)]
And module string

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agowhitelist patch
Joerg Jaspert [Fri, 13 Feb 2009 22:05:58 +0000 (23:05 +0100)]
whitelist patch

this needs module re for now

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agobackports.org
Joerg Jaspert [Fri, 13 Feb 2009 21:22:57 +0000 (22:22 +0100)]
backports.org

also add the config and scripts from it.
Most, if not all, should possibly be made cleaner/merged into the debian part
of it, but right now i just want to merge it and get it working with latest
code...

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agomail-whitelist
Joerg Jaspert [Fri, 13 Feb 2009 21:04:48 +0000 (22:04 +0100)]
mail-whitelist

finally make the mail whitelist patch a proper part of dak.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoadd-user
Joerg Jaspert [Fri, 13 Feb 2009 20:41:20 +0000 (21:41 +0100)]
add-user

add an OLD OLD script from bpo to git, used to "create" new users on that
archive.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoAdd security support for the lenny release
Mark Hymers [Thu, 12 Feb 2009 22:26:59 +0000 (22:26 +0000)]
Add security support for the lenny release

 * Move etch to oldstable
 * Rename lenny to stable
 * Create squeeze as testing
 * Make sure that all stable references now have arm and armel
 * Make sure that all testing/unstable/experimental references only have armel
   (i.e. drop arm)

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agoFirst pass at lenny release branch
Mark Hymers [Thu, 12 Feb 2009 22:10:26 +0000 (22:10 +0000)]
First pass at lenny release branch

Things we do:
 * Move etch to oldstable
 * Rename lenny to stable
 * Create squeeze as testing
 * Make sure that all stable references now have arm and armel
 * Make sure that all testing/unstable/experimental references only have armel
   (i.e. drop arm)

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agosecurity install
Joerg Jaspert [Thu, 12 Feb 2009 22:04:36 +0000 (23:04 +0100)]
security install

oh well, use a wrapper.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agosecurity_install
Joerg Jaspert [Thu, 12 Feb 2009 21:57:54 +0000 (22:57 +0100)]
security_install

enable the package-file-map

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoMerge commit 'ftpmaster/master'
Mark Hymers [Thu, 12 Feb 2009 21:42:04 +0000 (21:42 +0000)]
Merge commit 'ftpmaster/master'

Conflicts:

dak/check_archive.py

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agourl
Joerg Jaspert [Mon, 9 Feb 2009 22:40:14 +0000 (23:40 +0100)]
url

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agodocstrings fun
Joerg Jaspert [Thu, 5 Feb 2009 21:03:45 +0000 (22:03 +0100)]
docstrings fun

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoremove backwards-compatiblity stuff which is no longer needed
Mark Hymers [Thu, 5 Feb 2009 20:51:48 +0000 (20:51 +0000)]
remove backwards-compatiblity stuff which is no longer needed

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agodsync
Joerg Jaspert [Thu, 5 Feb 2009 16:14:56 +0000 (17:14 +0100)]
dsync

as we now built our own static version, add a bindir variable, put
the compiled one in there and use it from that place.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agogitignore
Archive Administrator [Thu, 5 Feb 2009 16:08:20 +0000 (16:08 +0000)]
gitignore

add a few files/directories to .gitignore

15 years agoMerge commit 'mhy/master' into merge
Joerg Jaspert [Thu, 5 Feb 2009 16:03:54 +0000 (17:03 +0100)]
Merge commit 'mhy/master' into merge

* commit 'mhy/master':
  add static target

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoadd static target
Mark Hymers [Thu, 5 Feb 2009 16:02:36 +0000 (16:02 +0000)]
add static target

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agoMerge commit 'mhy/master' into merge
Joerg Jaspert [Wed, 4 Feb 2009 20:07:13 +0000 (21:07 +0100)]
Merge commit 'mhy/master' into merge

* commit 'mhy/master':
  build a static library

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agobuild a static library
Mark Hymers [Wed, 4 Feb 2009 10:59:19 +0000 (10:59 +0000)]
build a static library

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agodinstall
Joerg Jaspert [Tue, 3 Feb 2009 21:49:11 +0000 (22:49 +0100)]
dinstall

have subjects in the mails we send to the l10n list

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agocron.dinstall
Joerg Jaspert [Tue, 3 Feb 2009 21:20:42 +0000 (22:20 +0100)]
cron.dinstall

<Ganneff> now
<Ganneff> one would think its helpful to not only output this into the logfile of dinstall
<Ganneff> but actually redirect it somewhere
<weasel> you think?
<Ganneff> maybe you want to parse our log instead?
<weasel> :)
<Ganneff> $base/ftp/indices/package-file.map that it will end up as
<weasel> .bz2
<Ganneff> always those wishes

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agodak.py
Joerg Jaspert [Tue, 3 Feb 2009 21:16:21 +0000 (22:16 +0100)]
dak.py

add the new command

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agodinstall
Joerg Jaspert [Tue, 3 Feb 2009 20:01:05 +0000 (21:01 +0100)]
dinstall

added package/file mapping generation to dinstall

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agomake_pkg_file_mapping
Joerg Jaspert [Tue, 3 Feb 2009 19:55:26 +0000 (20:55 +0100)]
make_pkg_file_mapping

add the funny quote weasel missed
use row as variable name, not the too clearly named i
do use the new docstring foo.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoMerge commit 'weasel/master' into merge
Joerg Jaspert [Tue, 3 Feb 2009 18:54:14 +0000 (19:54 +0100)]
Merge commit 'weasel/master' into merge

* commit 'weasel/master':
  Add make_pkg_file_mapping.py

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoAdd make_pkg_file_mapping.py
Peter Palfrader [Tue, 3 Feb 2009 13:02:32 +0000 (06:02 -0700)]
Add make_pkg_file_mapping.py

make_pkg_file_mapping prints, for every file in the pool, which source package
and version it belongs to and for binary packages additionally which arch,
binary package and binary package version it has in a standard rfc2822-like
format.

15 years agoMore docstrings
Joerg Jaspert [Sun, 1 Feb 2009 14:53:38 +0000 (15:53 +0100)]
More docstrings

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agocontrol-suite
Joerg Jaspert [Sun, 1 Feb 2009 14:52:59 +0000 (15:52 +0100)]
control-suite

allow to set lenny-r0

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agomore docstrings
Joerg Jaspert [Wed, 28 Jan 2009 22:48:39 +0000 (23:48 +0100)]
more docstrings

a few more in dak/

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoMerge commit 'mhy/web' into merge
Joerg Jaspert [Tue, 27 Jan 2009 22:18:13 +0000 (23:18 +0100)]
Merge commit 'mhy/web' into merge

* commit 'mhy/web':
  add stable keys, thanks to Luk

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoadd stable keys, thanks to Luk
Mark Hymers [Tue, 27 Jan 2009 22:17:14 +0000 (22:17 +0000)]
add stable keys, thanks to Luk

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agoMerge commit 'mhy/master' into merge
Joerg Jaspert [Tue, 27 Jan 2009 21:55:25 +0000 (22:55 +0100)]
Merge commit 'mhy/master' into merge

* commit 'mhy/master':
  don't die on silly input such as: Changed-By: P=Q6P9 P<P5Q)P5Q Q/P:P>P2 <eugen@debian.org>

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agodon't die on silly input such as: Changed-By: P=Q6P9 P<P5Q)P5Q Q/P:P>P2 <eugen@debian...
Mark Hymers [Tue, 27 Jan 2009 21:54:27 +0000 (21:54 +0000)]
don't die on silly input such as: Changed-By: P=Q6P9 P<P5Q)P5Q Q/P:P>P2 <eugen@debian.org>

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agogit
Joerg Jaspert [Tue, 27 Jan 2009 21:47:42 +0000 (22:47 +0100)]
git

one more ../ for the new setup

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoMerge commit 'mhy/web' into merge
Joerg Jaspert [Tue, 27 Jan 2009 21:37:17 +0000 (22:37 +0100)]
Merge commit 'mhy/web' into merge

* commit 'mhy/web':
  grumble, whitespace, grumble
  tidy up keys

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agogrumble, whitespace, grumble
Mark Hymers [Tue, 27 Jan 2009 21:36:48 +0000 (21:36 +0000)]
grumble, whitespace, grumble

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agoMerge commit 'ftpmaster/master' into web
Mark Hymers [Tue, 27 Jan 2009 21:32:28 +0000 (21:32 +0000)]
Merge commit 'ftpmaster/master' into web

15 years agotidy up keys
Mark Hymers [Tue, 27 Jan 2009 21:32:22 +0000 (21:32 +0000)]
tidy up keys

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agoAnd another used dir
Joerg Jaspert [Tue, 27 Jan 2009 21:30:45 +0000 (22:30 +0100)]
And another used dir

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoAdd empty dirs, but ones that are used automagically by our tools
Joerg Jaspert [Tue, 27 Jan 2009 21:29:19 +0000 (21:29 +0000)]
Add empty dirs, but ones that are used automagically by our tools

15 years agoi18n
Joerg Jaspert [Tue, 27 Jan 2009 21:25:50 +0000 (22:25 +0100)]
i18n

this symlink is autogenerated, remove

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoweb/
Joerg Jaspert [Tue, 27 Jan 2009 21:23:26 +0000 (21:23 +0000)]
web/

lets add that part of our webdir to git thats not generated
automagically.

15 years agop-u
Joerg Jaspert [Mon, 26 Jan 2009 22:15:04 +0000 (23:15 +0100)]
p-u

re_default_answer was missing.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agovarious
Joerg Jaspert [Mon, 26 Jan 2009 21:56:31 +0000 (22:56 +0100)]
various

a few more docstrings

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoutils.py
Joerg Jaspert [Sun, 25 Jan 2009 23:39:44 +0000 (00:39 +0100)]
utils.py

initial markup

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years ago[various]
Joerg Jaspert [Sun, 25 Jan 2009 22:52:33 +0000 (23:52 +0100)]
[various]

more docstrings, even if some are empty/not written yet. Any help would be nice :)

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agos/FTPMaster/FTP Master/
Joerg Jaspert [Sun, 25 Jan 2009 16:56:58 +0000 (17:56 +0100)]
s/FTPMaster/FTP Master/

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agobts-categorize
Joerg Jaspert [Sun, 25 Jan 2009 16:52:28 +0000 (17:52 +0100)]
bts-categorize

add a few more docstrings to the top

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoMerge commit 'stew/categorize-bts' into merge
Joerg Jaspert [Sun, 25 Jan 2009 16:51:40 +0000 (17:51 +0100)]
Merge commit 'stew/categorize-bts' into merge

* commit 'stew/categorize-bts':
  git rid of useless email realeted imports.  added docstring for module
  Use dak's facility for sending email.  Add bts-categorize to cron.dinstall
  dont send email unless there is something to categorize
  move bts_categorize into dak, send email
  drop logging level
  a script that categorizes bugs against ftp.debian.org

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agogit rid of useless email realeted imports. added docstring for module
Mike O'Connor [Sun, 25 Jan 2009 16:49:04 +0000 (11:49 -0500)]
git rid of useless email realeted imports.  added docstring for module
Signed-off-by: Mike O'Connor <stew@vireo.org>
15 years agoUse dak's facility for sending email. Add bts-categorize to cron.dinstall
Mike O'Connor [Sun, 25 Jan 2009 16:16:28 +0000 (11:16 -0500)]
Use dak's facility for sending email.  Add bts-categorize to cron.dinstall

Signed-off-by: Mike O'Connor <stew@vireo.org>
15 years agodaklib/database
Joerg Jaspert [Sun, 25 Jan 2009 14:38:28 +0000 (15:38 +0100)]
daklib/database

the first fully documented (well, docstrings, but many) file.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoHm, i seem to miss a small detail here, lets back out this one hunk and look later...
Joerg Jaspert [Sun, 25 Jan 2009 10:58:36 +0000 (11:58 +0100)]
Hm, i seem to miss a small detail here, lets back out this one hunk and look later. I DO HATE PDIFFS. I DO

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoIts subprocess.PIPE, not PIPE
Joerg Jaspert [Sun, 25 Jan 2009 00:50:08 +0000 (01:50 +0100)]
Its subprocess.PIPE, not PIPE

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agomake-suite-file-list
Joerg Jaspert [Sun, 25 Jan 2009 00:47:27 +0000 (01:47 +0100)]
make-suite-file-list

forgot to rename one usage of the two variable names

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agolotsa files
Joerg Jaspert [Sun, 25 Jan 2009 00:27:16 +0000 (01:27 +0100)]
lotsa files

doc strings, dont we love em?

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agop-u
Joerg Jaspert [Sun, 25 Jan 2009 00:12:17 +0000 (01:12 +0100)]
p-u

its re_no_epoch and re_no_revision

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoMerge commit 'mhy/regexes' into merge
Joerg Jaspert [Sat, 24 Jan 2009 19:27:47 +0000 (20:27 +0100)]
Merge commit 'mhy/regexes' into merge

* commit 'mhy/regexes':
  remove unused regexes
  docstring update
  Only import regexes we're using
  whoops, put sensible comment in
  Move regexes into a module so we can keep track

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoremove unused regexes
Mark Hymers [Sat, 24 Jan 2009 19:22:34 +0000 (19:22 +0000)]
remove unused regexes

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agodocstring update
Mark Hymers [Sat, 24 Jan 2009 19:16:09 +0000 (19:16 +0000)]
docstring update

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agoMerge commit 'ftpmaster/master' into regexes
Mark Hymers [Sat, 24 Jan 2009 19:13:26 +0000 (19:13 +0000)]
Merge commit 'ftpmaster/master' into regexes

Conflicts:

dak/make_maintainers.py
dak/new_security_install.py
dak/process_accepted.py

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agoOnly import regexes we're using
Mark Hymers [Sat, 24 Jan 2009 19:09:51 +0000 (19:09 +0000)]
Only import regexes we're using

This is so that we have an idea of where we need what.

Lots of these should be changed to be opaque functions,
not exposing that they're internally regexes at all.

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agowhoops, put sensible comment in
Mark Hymers [Sat, 24 Jan 2009 18:36:25 +0000 (18:36 +0000)]
whoops, put sensible comment in

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agoMove regexes into a module so we can keep track
Mark Hymers [Sat, 24 Jan 2009 18:27:22 +0000 (18:27 +0000)]
Move regexes into a module so we can keep track

Rather than scatter regexes all over the place (for things
which should probably be functions hiding the implementation
detail anyways such as "is this a valid package version"),
move them into daklib.regexes.

I'm not convinced this is an immediate win, but I think it's
one step on a long road...

Oh, and it's untested

Signed-off-by: Mark Hymers <mhy@debian.org>
15 years agodont send email unless there is something to categorize
Mike O'Connor [Sat, 24 Jan 2009 17:38:22 +0000 (12:38 -0500)]
dont send email unless there is something to categorize

Signed-off-by: Mike O'Connor <stew@vireo.org>
15 years agoMerge branch 'master' into categorize-bts
Mike O'Connor [Sat, 24 Jan 2009 17:34:26 +0000 (12:34 -0500)]
Merge branch 'master' into categorize-bts

15 years agomove bts_categorize into dak, send email
Mike O'Connor [Sat, 24 Jan 2009 17:19:07 +0000 (12:19 -0500)]
move bts_categorize into dak, send email

bts_categorize can now be called as "dak bts-categorize"
added command line options (try 'dak bts-categorize -h')
it now optionally sends email to control@bugs.debian.org

Signed-off-by: Mike O'Connor <stew@vireo.org>
15 years agoqueue.py
Joerg Jaspert [Sat, 24 Jan 2009 15:51:53 +0000 (16:51 +0100)]
queue.py

"0644" != 0644. damn you, string and int.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agofdopen
Joerg Jaspert [Sat, 24 Jan 2009 15:43:44 +0000 (16:43 +0100)]
fdopen

who would have thought, os.fdopen really wants an fd, not a filename.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoVarious
Joerg Jaspert [Sat, 24 Jan 2009 15:32:25 +0000 (16:32 +0100)]
Various

remove a few trailing ;

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agomake_overrides
Joerg Jaspert [Sat, 24 Jan 2009 15:27:13 +0000 (16:27 +0100)]
make_overrides

simple remove of two unneeded ;

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agomirror_split.py
Joerg Jaspert [Sat, 24 Jan 2009 15:26:53 +0000 (16:26 +0100)]
mirror_split.py

Remove, not used.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agodatabase.py
Joerg Jaspert [Sat, 24 Jan 2009 15:22:00 +0000 (16:22 +0100)]
database.py

add docstrings.
make two sql queries more readable

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agopychecker 2
Joerg Jaspert [Sat, 24 Jan 2009 14:53:05 +0000 (15:53 +0100)]
pychecker 2

a whole bunch more pychecker warnings. (Thanks to bicyclerepair, those are the easy ones)

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoimport_ldap_fingerprints
Joerg Jaspert [Sat, 24 Jan 2009 14:20:35 +0000 (15:20 +0100)]
import_ldap_fingerprints

its existing_uid, not existing_ui

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agopychecker
Joerg Jaspert [Sat, 24 Jan 2009 13:39:21 +0000 (14:39 +0100)]
pychecker

shut up more of pychecker.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoutils.py
Joerg Jaspert [Sat, 24 Jan 2009 13:28:37 +0000 (14:28 +0100)]
utils.py

remove a few "FOO shadows builtin" warnings.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agogenerate_index_diffs
Joerg Jaspert [Sat, 24 Jan 2009 13:07:44 +0000 (14:07 +0100)]
generate_index_diffs

remove commented code. if we really need it - we do have a VCS...

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agogenerate_index_diffs
Joerg Jaspert [Sat, 24 Jan 2009 13:06:53 +0000 (14:06 +0100)]
generate_index_diffs

replace os.popen2 by strftime usage (someone clearly didnt know that
and preferred to spawn date +%whatever. *sigh*).

also replace a os.popen call with subprocess.Popen.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agovarious
Joerg Jaspert [Sat, 24 Jan 2009 01:45:14 +0000 (02:45 +0100)]
various

use the new "style" for the temp_filename function, and if applicable
also use os.fdopen.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agotemp_filename
Joerg Jaspert [Fri, 23 Jan 2009 23:06:54 +0000 (00:06 +0100)]
temp_filename

stop using mktemp and use mkstemp. Also use the functions with all their
features, like setting prefix, instead of trying to do that ourself.
Yikes, one-liner now, could remove the function alltogether and instead
use mkstemp directly, but *maybe* we want to get more code into here,
so lets keep it for now.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoutils.py
Joerg Jaspert [Fri, 23 Jan 2009 23:05:00 +0000 (00:05 +0100)]
utils.py

stop using mktemp and use mkstemp instead

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoutils.py
Joerg Jaspert [Fri, 23 Jan 2009 23:04:28 +0000 (00:04 +0100)]
utils.py

eliminate pychecker warning "shadows builtin input|file|hash"

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoindex diffs
Joerg Jaspert [Fri, 23 Jan 2009 22:15:06 +0000 (23:15 +0100)]
index diffs

(cosmetical) this is not a warning, merely an information about the correct
function of this tool.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoRevert "Merge commit 'stew/popen2-must-die' into merge"
Joerg Jaspert [Thu, 22 Jan 2009 23:00:08 +0000 (00:00 +0100)]
Revert "Merge commit 'stew/popen2-must-die' into merge"

This reverts commit d72561f42b76635948b88902ecd0966cecec9aaf.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
15 years agoRevert "Merge commit 'stew/popen2-must-die' into merge"
Joerg Jaspert [Thu, 22 Jan 2009 22:54:09 +0000 (23:54 +0100)]
Revert "Merge commit 'stew/popen2-must-die' into merge"

This reverts commit 1fb2a3d44f1e64fbf91e7801c8c549732c6104b4.

Signed-off-by: Joerg Jaspert <joerg@debian.org>