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/";
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/";
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
{
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/";
# 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.
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)