X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=daklib%2Fqueue.py;h=d7e813a972ff362a853f42f581ac99c6ac3f7ced;hb=564395db9f6a393a894fa1b2f7ff5aefcfadd2b7;hp=f4e4b9087b8923357b3a03aa459ec29027bb7231;hpb=644584f12c7513cc394defdbdbf2faf84c4e0206;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index f4e4b908..d7e813a9 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -345,7 +345,7 @@ class Upload: if not changes.has_key("distribution") or not isinstance(changes["distribution"], DictType): changes["distribution"] = {} - override_summary =""; + override_summary ="" file_keys = files.keys() file_keys.sort() for file_entry in file_keys: @@ -501,17 +501,17 @@ distribution.""" dsc.has_key("bts changelog"): (fd, temp_filename) = utils.temp_filename(Cnf["Dir::Queue::BTSVersionTrack"], prefix=".") - version_history = os.fdopen(temp_filename, 'w') + version_history = os.fdopen(fd, 'w') version_history.write(dsc["bts changelog"]) version_history.close() filename = "%s/%s" % (Cnf["Dir::Queue::BTSVersionTrack"], changes_file[:-8]+".versions") os.rename(temp_filename, filename) - os.chmod(filename, "0644") + os.chmod(filename, 0644) # Write out the binary -> source mapping. (fd, temp_filename) = utils.temp_filename(Cnf["Dir::Queue::BTSVersionTrack"], prefix=".") - debinfo = os.fdopen(temp_filename, 'w') + debinfo = os.fdopen(fd, 'w') for file_entry in file_keys: f = files[file_entry] if f["type"] == "deb": @@ -523,7 +523,7 @@ distribution.""" filename = "%s/%s" % (Cnf["Dir::Queue::BTSVersionTrack"], changes_file[:-8]+".debinfo") os.rename(temp_filename, filename) - os.chmod(filename, "0644") + os.chmod(filename, 0644) self.queue_build("accepted", Cnf["Dir::Queue::Accepted"]) @@ -1033,7 +1033,8 @@ SELECT s.version, su.suite_name FROM source s, src_associations sa, suite su # for example, the package was in potato but had an -sa # upload in woody. So we need to choose the right one. - x = ql[0]; # default to something sane in case we don't match any or have only one + # default to something sane in case we don't match any or have only one + x = ql[0] if len(ql) > 1: for i in ql: @@ -1054,7 +1055,8 @@ SELECT s.version, su.suite_name FROM source s, src_associations sa, suite su actual_size = os.stat(old_file)[stat.ST_SIZE] found = old_file suite_type = x[2] - dsc_files[dsc_file]["files id"] = x[3]; # need this for updating dsc_files in install() + # need this for updating dsc_files in install() + dsc_files[dsc_file]["files id"] = x[3] # See install() in process-accepted... self.pkg.orig_tar_id = x[3] self.pkg.orig_tar_gz = old_file