spawn("dak process-policy unembargoed")
newstage=get_policy_queue('newstage')
- # 2. sync the stuff to ftpmaster
- print "Sync stuff for upload to ftpmaster"
- spawn("rsync -a -q %s/. /srv/queued/ftpmaster/." % (newstage.path))
-
print "Locking unchecked"
lockfile='/srv/security-master.debian.org/lock/unchecked.lock'
- spawn("lockfile -r8 {0}".format(lockfile))
+ spawn("lockfile -r42 {0}".format(lockfile))
try:
+
+ # 2. sync the stuff to ftpmaster
+ print "Sync stuff for upload to ftpmaster"
+ spawn("rsync -a -q %s/. /srv/queued/ftpmaster/." % (newstage.path))
+
# 3. Now run process-upload in the newstage dir
print "Now put it into the security archive"
spawn("dak process-upload -a -d %s" % (newstage.path))
def process_changes_files(changes_files, type, log, rrd_dir):
msg = ""
cache = {}
+ unprocessed = []
# Read in all the .changes files
for filename in changes_files:
try:
# Divide the .changes into per-source groups
per_source = {}
for filename in cache.keys():
+ if not cache[filename].has_key("source"):
+ unprocessed.append(filename)
+ continue
source = cache[filename]["source"]
if not per_source.has_key(source):
per_source[source] = {}
print "%s %s source package%s / %s %s package%s in total." % (source_count, type, plural(source_count), total_count, type, plural(total_count))
print
+ if len(unprocessed):
+ print "UNPROCESSED"
+ print "-----------"
+ for u in unprocessed:
+ print u
+ print
################################################################################
VRULE:1234691928#632a5b:lenny release
VRULE:1281102258#0b19c1:squeeze freeze
VRULE:1296908977#0b19c1:squeeze release
+VRULE:1341078720#00ff00:wheezy freeze