]> err.no Git - dak/commitdiff
Holding isn't a queue either, it's a tmpdir
authorMark Hymers <mhy@debian.org>
Thu, 28 Jul 2011 06:20:45 +0000 (07:20 +0100)
committerMark Hymers <mhy@debian.org>
Thu, 28 Jul 2011 06:20:45 +0000 (07:20 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
config/backports/dak.conf
config/debian-security/dak.conf
config/debian/dak.conf
dak/process_upload.py
daklib/holding.py

index 1f09c927531fcfccd652a175eb9bb0600f9beaeb..0bfa284f79827acdf6f58916ece12876660d9fa7 100644 (file)
@@ -211,12 +211,12 @@ Dir
   UrgencyLog "/srv/backports-master.debian.org/testing/urgencies/";
   TempPath "/srv/backports-master.debian.org/tmp";
   BTSVersionTrack "/srv/backports-master.debian.org/queue/bts_version_track/";
+  Holding "/srv/backports-master.debian.org/queue/holding/";
 
   Queue
   {
     Byhand "/srv/backports-master.debian.org/queue/byhand/";
     Done "/srv/backports-master.debian.org/queue/done/";
-    Holding "/srv/backports-master.debian.org/queue/holding/";
     New "/srv/backports-master.debian.org/queue/new/";
     Reject "/srv/backports-master.debian.org/queue/reject/";
     Unchecked "/srv/backports-master.debian.org/queue/unchecked/";
index 3d1eba53b1e957afda6da733075b9bee598a8dbf..ec3501ede7943656eb23445f5d94e339148a231a 100644 (file)
@@ -223,11 +223,12 @@ Dir
   Override "/srv/security-master.debian.org/scripts/override/";
   Upload "/srv/queued/ftpmaster/";
   TempPath "/srv/security-master.debian.org/tmp";
+  Holding "/srv/security-master.debian.org/queue/holding/";
+
   Queue
   {
     Byhand "/srv/security-master.debian.org/queue/byhand/";
     Done "/srv/security-master.debian.org/queue/done/";
-    Holding "/srv/security-master.debian.org/queue/holding/";
     New "/srv/security-master.debian.org/queue/new/";
     Reject "/srv/security-master.debian.org/queue/reject/";
     Unchecked "/srv/security-master.debian.org/queue/unchecked/";
index 10f3e90fa81bf5475dcac225d3de20f36f56815c..d74d564104fe7cbdb9b93d942f63f9b4ab5661f8 100644 (file)
@@ -325,6 +325,7 @@ Dir
   UrgencyLog "/srv/release.debian.org/britney/input/urgencies/";
   TempPath "/srv/ftp-master.debian.org/tmp/";
   BTSVersionTrack "/srv/ftp-master.debian.org/queue/bts_version_track/";
+  Holding "/srv/ftp-master.debian.org/queue/holding/";
 
   Queue
   {
@@ -333,7 +334,6 @@ Dir
     OldProposedUpdates "/srv/ftp-master.debian.org/queue/o-p-u-new/";
     ProposedUpdates "/srv/ftp-master.debian.org/queue/p-u-new/";
     Done "/srv/ftp-master.debian.org/queue/done/";
-    Holding "/srv/ftp-master.debian.org/queue/holding/";
     New "/srv/ftp-master.debian.org/queue/new/";
     Reject "/srv/ftp-master.debian.org/queue/reject/";
     Unchecked "/srv/ftp-master.debian.org/queue/unchecked/";
index 84186c57186a792a7a3e66bd59fd3d864474f05f..bf74baa65be064e356abaa8459b39a6688c85ad9 100755 (executable)
@@ -364,7 +364,7 @@ def process_it(changes_file, session):
         # If this is the Real Thing(tm), copy things into a private
         # holding directory first to avoid replacable file races.
         if not Options["No-Action"]:
-            os.chdir(cnf["Dir::Queue::Holding"])
+            holding.chdir_to_holding()
 
             # Absolutize the filename to avoid the requirement of being in the
             # same directory as the .changes file.
index f77416cadc224c7a6827608883df8db6037dd2c6..2f36a696313badb4aad725685f1c1362df6c2765 100644 (file)
@@ -45,11 +45,14 @@ class Holding(object):
             self.initialised = True
 
             self.in_holding = {}
-            self.holding_dir = Config()["Dir::Queue::Holding"]
+            self.holding_dir = Config()["Dir::Holding"]
             # ftptrainees haven't access to holding, use a temp directory instead
             if not os.access(self.holding_dir, os.W_OK):
                 self.holding_dir = Config()["Dir::TempPath"]
 
+    def chdir_to_holding(self):
+        os.chdir(self.holding_dir)
+
     def copy_to_holding(self, filename):
         base_filename = os.path.basename(filename)