提交 9aac81c7 编写于 作者: M Mark Hymers

Reject isn't a queue

Signed-off-by: NMark Hymers <mhy@debian.org>
上级 9a1689eb
......@@ -213,12 +213,12 @@ Dir
BTSVersionTrack "/srv/backports-master.debian.org/queue/bts_version_track/";
Holding "/srv/backports-master.debian.org/queue/holding/";
Done "/srv/backports-master.debian.org/queue/done/";
Reject "/srv/backports-master.debian.org/queue/reject/";
Queue
{
Byhand "/srv/backports-master.debian.org/queue/byhand/";
New "/srv/backports-master.debian.org/queue/new/";
Reject "/srv/backports-master.debian.org/queue/reject/";
Unchecked "/srv/backports-master.debian.org/queue/unchecked/";
Newstage "/srv/backports-master.debian.org/queue/newstage/";
Embargoed "/srv/backports-master.debian.org/queue/Embargoed/";
......
......@@ -217,12 +217,12 @@ Dir
TempPath "/srv/security-master.debian.org/tmp";
Holding "/srv/security-master.debian.org/queue/holding/";
Done "/srv/security-master.debian.org/queue/done/";
Reject "/srv/security-master.debian.org/queue/reject/";
Queue
{
Byhand "/srv/security-master.debian.org/queue/byhand/";
New "/srv/security-master.debian.org/queue/new/";
Reject "/srv/security-master.debian.org/queue/reject/";
Unchecked "/srv/security-master.debian.org/queue/unchecked/";
Newstage "/srv/security-master.debian.org/queue/newstage/";
......
......@@ -314,6 +314,7 @@ Dir
BTSVersionTrack "/srv/ftp-master.debian.org/queue/bts_version_track/";
Holding "/srv/ftp-master.debian.org/queue/holding/";
Done "/srv/ftp-master.debian.org/queue/done/";
Reject "/srv/ftp-master.debian.org/queue/reject/";
Queue
{
......@@ -322,7 +323,6 @@ Dir
OldProposedUpdates "/srv/ftp-master.debian.org/queue/o-p-u-new/";
ProposedUpdates "/srv/ftp-master.debian.org/queue/p-u-new/";
New "/srv/ftp-master.debian.org/queue/new/";
Reject "/srv/ftp-master.debian.org/queue/reject/";
Unchecked "/srv/ftp-master.debian.org/queue/unchecked/";
Newstage "/srv/ftp-master.debian.org/queue/newstage/";
Embargoed "/srv/ftp-master.debian.org/does/not/exist/";
......
......@@ -201,10 +201,10 @@ def main ():
print "Processing incoming..."
flush_orphans()
reject = cnf["Dir::Queue::Reject"]
reject = cnf["Dir::Reject"]
if os.path.exists(reject) and os.path.isdir(reject):
if Options["Verbose"]:
print "Processing incoming/REJECT..."
print "Processing reject directory..."
os.chdir(reject)
flush_old()
......
......@@ -2314,7 +2314,7 @@ distribution."""
if os.access(file_entry, os.R_OK) == 0:
continue
dest_file = os.path.join(cnf["Dir::Queue::Reject"], file_entry)
dest_file = os.path.join(cnf["Dir::Reject"], file_entry)
try:
dest_fd = os.open(dest_file, os.O_RDWR | os.O_CREAT | os.O_EXCL, 0644)
......@@ -2326,7 +2326,7 @@ distribution."""
except NoFreeFilenameError:
# Something's either gone badly Pete Tong, or
# someone is trying to exploit us.
utils.warn("**WARNING** failed to find a free filename for %s in %s." % (file_entry, cnf["Dir::Queue::Reject"]))
utils.warn("**WARNING** failed to find a free filename for %s in %s." % (file_entry, cnf["Dir::Reject"]))
return
# Make sure we really got it
......@@ -2396,7 +2396,7 @@ distribution."""
cnf = Config()
reason_filename = self.pkg.changes_file[:-8] + ".reason"
reason_filename = os.path.join(cnf["Dir::Queue::Reject"], reason_filename)
reason_filename = os.path.join(cnf["Dir::Reject"], reason_filename)
# Move all the files into the reject directory
reject_files = self.pkg.files.keys() + [self.pkg.changes_file]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册