]> git.decadent.org.uk Git - dak.git/commitdiff
queue.py
authorJoerg Jaspert <joerg@debian.org>
Sat, 24 Jan 2009 15:51:53 +0000 (16:51 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sat, 24 Jan 2009 15:51:53 +0000 (16:51 +0100)
"0644" != 0644. damn you, string and int.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/queue.py

index 1a4bb3b345a368c0f2040f46263ca046382a23f5..d7e813a972ff362a853f42f581ac99c6ac3f7ced 100755 (executable)
@@ -507,7 +507,7 @@ distribution."""
                 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=".")
@@ -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"])