Anthony Towns [Fri, 11 Apr 2008 11:07:57 +0000 (11:07 +0000)]
* dak/utils.py: build_file_list() extra parameters so it can
build a file list for checksums-foo fields. Don't use float() to
compare formats, because Format: 1.10 should compare greater than
Format: 1.9 (use "1.9".split(".",1) and tuple comparison instead)
* dak/process_unchecked.py: check_md5sum becomes check_hashes
and check_hash. If changes format is 1.8 or later, also check
checksums-sha1 and checksums-sha256 for both .changes and .dsc.
Joerg Jaspert [Sat, 22 Mar 2008 14:11:41 +0000 (15:11 +0100)]
* dak/transitions.py (load_transitions): Check if all our keys are
defined, if there are only keys defined we want and also the types
of the various keys.
Anthony Towns [Fri, 21 Mar 2008 19:54:07 +0000 (19:54 +0000)]
* dak/edit_transitions.py: Add --import option.
Add --use-sudo option. Use fcntl locking for writing.
Move writing into a function (write_transitions).
Reinvoke self using sudo and --import if necessary.
Move temporary file creation into a function, use mkstemp.
Rename to "dak transitions".
Joerg Jaspert [Fri, 21 Mar 2008 15:39:38 +0000 (16:39 +0100)]
* dak/edit_transitions.py (edit_transitions): Use sudo to copy the
edited file back in place
(check_transitions): Use proper locking and also use sudo to copy
the new file in place
Joerg Jaspert [Wed, 12 Mar 2008 22:27:00 +0000 (23:27 +0100)]
* dak/edit_transitions.py: Done a number of cleanups to make code
working. Also changed the way prompting/answering goes, to not
have to import daklib/queue.
(edit_transitions): When done with a successful edit - also print
a final overview about defined transitions
* dak/edit_transitions.py: Renamed from check_transitions.py
(main): Also rename new_vers/curvers to expected/current
Basically a nice rewrite, so it now does checks and edit,
depending on how you call it. Check also removes old transitions,
if user wants it
Joerg Jaspert [Tue, 11 Mar 2008 21:35:45 +0000 (22:35 +0100)]
* dak/process_unchecked.py: Import syck module directly, not "from
syck import *"
(check_transition): Do the check for sourceful upload in here
Also adjust the syck loading commands, rename new_vers to
expected, curvers to current, to make it more clear what they mean.
* daklib/database.py (get_suite_version): Renamed from
get_testing_version. Also changed the cache variables name
* The above changes are based on modifications from Anthony.
Joerg Jaspert [Sun, 2 Mar 2008 15:29:46 +0000 (16:29 +0100)]
Actually revert the move to daklib.queue, keep it in proces_unchecked.
Will only move the sql to daklib.database, and the wrapper for the
release team will have the rest on its own.
Joerg Jaspert [Sun, 2 Mar 2008 15:12:20 +0000 (16:12 +0100)]
* daklib/queue.py (check_transition): Added in here
Modified so it only cleans up when called with cleanup
parameter. Which will be called from a seperate script for the
release managers.
* dak/process_unchecked.py
(check_transition): Warn on broken transitions file and return,
not doing anything.
(check_transition): Moved out of here, into daklib/queue
(process_it): Call it in daklib.queue, but only if
changes[architecture] has source included.
Christoph Berg [Sat, 9 Feb 2008 19:57:33 +0000 (20:57 +0100)]
Add changedby column to source table, and fill in information found in the
.changes. This will allow to identify NMUs and sponsored uploads more precisely
in tools querying projectb.
Also move src_uploaders after source in DB population script so the REFERNCES
clause works.