[Piuparts-devel] [Git][debian/piuparts][develop] master-bin/prepare_backup: ignore empty submissions.txt for $TESTING-pu and $TESTING-security.
Holger Levsen
gitlab at salsa.debian.org
Fri Mar 1 10:15:46 GMT 2019
Holger Levsen pushed to branch develop at Debian / piuparts
Commits:
d3d6d62c by Holger Levsen at 2019-03-01T10:15:35Z
master-bin/prepare_backup: ignore empty submissions.txt for $TESTING-pu and $TESTING-security.
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- debian/changelog
- master-bin/prepare_backup.in
Changes:
=====================================
debian/changelog
=====================================
@@ -8,6 +8,8 @@ piuparts (0.98) UNRELEASED; urgency=medium
variable 'testing-suite'.
* generate_daily_report: show failures in sid, $TESTING and testing2sid
at the top of the report.
+ * master-bin/prepare_backup: ignore empty submissions.txt for $TESTING-pu
+ and $TESTING-security.
* Update TODO for bullseye.
[ Andreas Beckmann ]
=====================================
master-bin/prepare_backup.in
=====================================
@@ -32,11 +32,13 @@ get_config_value SECTIONS global sections
get_config_value MASTER global master-directory
get_config_value HTDOCS global output-directory
get_config_value BACKUPDIR global backup-directory ''
-
+get_config_value TESTING global testing-suite
copy_to_backupdir() {
if [ -f $MASTER/$1 ]; then
cp $MASTER/$1 $BACKUPDIR/$1
+ elif [ "$(basename $1)" = "submissions.txt" ] && ([ "$(dirname $1)" = "${TESTING}-pu" ] || [ "$(dirname $1)" = "${TESTING}-security" ]) ; then
+ : # during development these suites are created but stay empty
else
echo "Warning: $MASTER/$1 does not exist." # this produces a mail and that's a feature
fi
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/d3d6d62cf8c4ee5c65570c907595d07e781bd081
--
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/d3d6d62cf8c4ee5c65570c907595d07e781bd081
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20190301/8ebee50c/attachment-0001.html>
More information about the Piuparts-devel
mailing list