mv --target-directory="${accepted}" "${NAME}"
else
log_error "Error, couldn't find file ${NAME} to move to ${accepted}"
- exit 2
fi
done
mv --target-directory="${accepted}" "${file}" "${file%%.changes}.dak"
cd $base/backup/
find -maxdepth 1 -mindepth 1 -type f -name 'dump_pre_*' -mtime +2 -print0 | xargs -0 --no-run-if-empty rm
- find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mmin 720 |
+ find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mmin +720 |
while read dumpname; do
echo "Compressing $dumpname"
bzip2 -9v "$dumpname"
done
- find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' -mmin 720 |
+ find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' -mmin +720 |
while read dumpname; do
echo "Compressing $dumpname"
bzip2 -9v "$dumpname"
{
MustBeNewerThan
{
+ OldStable;
Stable;
};
// MustBeOlderThan
{
MustBeNewerThan
{
+ OldStable;
Stable;
// Proposed-Updates;
Testing;
{
MustBeNewerThan
{
+ OldStable;
Stable;
// Proposed-Updates;
Testing;
{
MustBeNewerThan
{
+ OldStable;
Stable;
// Proposed-Updates;
Testing;
if os.path.exists(path):
res += do_command("cat", path)
else:
- res += "No README.source in this package"
+ res += "No README.source in this package\n\n"
try:
shutil.rmtree(tempdir)
source_epochless_version = re_no_epoch.sub('', source_version)
dsc_filename = "%s_%s.dsc" % (source_package, source_epochless_version)
found = 0
- for q in ["Accepted", "Embargoed", "Unembargoed"]:
+ for q in ["Accepted", "Embargoed", "Unembargoed", "Newstage"]:
if Cnf.has_key("Dir::Queue::%s" % (q)):
if os.path.exists(Cnf["Dir::Queue::%s" % (q)] + '/' + dsc_filename):
found = 1
re_bin_only_nmu = re.compile(r"\+b\d+$")
re_comments = re.compile(r"\#.*")
+re_whitespace_comment = re.compile(r"^\s*(#|$)")
re_no_epoch = re.compile(r"^\d+\:")
re_no_revision = re.compile(r"-[^-]+$")
re_arch_from_filename = re.compile(r"/binary-[^/]+/")
from dak_exceptions import *
from regexes import re_html_escaping, html_escaping, re_single_line_field, \
re_multi_line_field, re_srchasver, re_verwithext, \
- re_parse_maintainer, re_taint_free, re_gpg_uid, re_re_mark
+ re_parse_maintainer, re_taint_free, re_gpg_uid, re_re_mark, \
+ re_whitespace_comment
################################################################################
whitelist_in = open_file(Cnf["Dinstall::MailWhiteList"])
try:
for line in whitelist_in:
- if re_re_mark.match(line):
- whitelist.append(re.compile(re_re_mark.sub("", line.strip(), 1)))
- else:
- whitelist.append(re.compile(re.escape(line.strip())))
+ if not re_whitespace_comment.match(line):
+ if re_re_mark.match(line):
+ whitelist.append(re.compile(re_re_mark.sub("", line.strip(), 1)))
+ else:
+ whitelist.append(re.compile(re.escape(line.strip())))
finally:
whitelist_in.close()