[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.49-82-g7e76d1d
Andreas Beckmann
anbe at debian.org
Sat Feb 23 10:48:31 UTC 2013
The following commit has been merged in the develop branch:
commit 6ad9cb88580567c2a407617c70154a057cc37670
Author: Andreas Beckmann <anbe at debian.org>
Date: Sat Feb 23 09:53:07 2013 +0100
prepare_backup: copy submissions.txt, too
that is history data, too
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/debian/changelog b/debian/changelog
index 647dd7a..44bfcaa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -39,6 +39,7 @@ piuparts (0.50) UNRELEASED; urgency=low
* Replace all remaining references to $HOME/bin and ~/bin with @sharedir at .
* prepare_backup:
- Get paths from piuparts.conf.
+ - Prepare a copy of submissions.txt, too.
* pre_install_exceptions: Handle bootcd-ia64 installation in squeeze.
* post_distupgrade_exceptions: Handle libdb4.8 removal in wheezy.
* pre_remove_50_find_bad_permissions: Add some exceptions.
diff --git a/master-bin/prepare_backup.in b/master-bin/prepare_backup.in
index 5232d23..a6c3917 100755
--- a/master-bin/prepare_backup.in
+++ b/master-bin/prepare_backup.in
@@ -37,8 +37,11 @@ get_config_value BACKUPDIR global backup-directory ''
test -n "$BACKUPDIR" || exit 0
for SECTION in $SECTIONS ; do
+ mkdir -p $BACKUPDIR/$SECTION
+ if [ -f $MASTER/$SECTION/submissions.txt ]; then
+ cp $MASTER/$SECTION/submissions.txt $BACKUPDIR/$SECTION/
+ fi
if [ -f $HTDOCS/$SECTION/counts.txt ]; then
- mkdir -p $BACKUPDIR/$SECTION
cp $HTDOCS/$SECTION/counts.txt $BACKUPDIR/$SECTION/
fi
done
--
piuparts git repository
More information about the Piuparts-commits
mailing list