[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: improve output
Holger Levsen
holger at moszumanska.debian.org
Tue Jun 9 11:28:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 01ae2e9c621ff8eed89ce53ddae6cf9a7d2c8fb3
Author: Holger Levsen <holger at layer-acht.org>
Date: Tue Jun 9 13:28:19 2015 +0200
reproducible: improve output
---
bin/reproducible_create_meta_pkg_sets.sh | 27 +++++++++++++++++++--------
1 file changed, 19 insertions(+), 8 deletions(-)
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index c385e45..2c3d10a 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -33,7 +33,8 @@ convert_from_deb822_into_source_packages_only() {
update_target() {
mv $TMPFILE $TARGET
- echo "$(date) - $TARGET updated."
+ echo "$(date -u) - $TARGET updated."
+ echo "============================================================================="
}
update_if_similar() {
@@ -48,15 +49,21 @@ update_if_similar() {
if [ $PERCENT -gt 107 ] || [ $PERCENT -lt 93 ] ; then
mv $TMPFILE $TARGET.new
echo
+ echo "Warning: too much difference for $TARGET, aborting. Please investigate and update manually:"
+ echo
echo diff -u $TARGET $TARGET.new
diff -u $TARGET $TARGET.new || true
echo
- echo "Warning: too much difference for $TARGET, aborting. Please investigate and update manually."
KEEP=$(mktemp)
mv $TARGET.new $KEEP
echo "The new pkg-set has been saved as $KEEP for further investigation."
- echo "wc -l $TARGET: $(wc -l $TARGET)"
- echo "wc -l $KEEP: $(wc -l $KEEP)"
+ echo " wc -l $TARGET $KEEP)"
+ wc -l $TARGET $KEEP | grep -v " total"
+ echo
+ echo "To update the package set run:"
+ echo "cp $KEEP $TARGET"
+ echo
+ echo "============================================================================="
else
update_target
fi
@@ -366,8 +373,8 @@ for SUITE in $SUITES ; do
# no pkg sets in experimental
continue
fi
- echo
- echo "$(date) - Creating meta package sets for $SUITE now."
+ echo "============================================================================="
+ echo "$(date -u) - Creating meta package sets for $SUITE now."
echo
DISTNAME="$SUITE-$ARCH"
@@ -386,10 +393,14 @@ for SUITE in $SUITES ; do
PACKAGES=$(ls $CHPATH/$DISTNAME/var/lib/apt/lists/*_dists_${SUITE}_main_binary-${ARCH}_Packages)
SOURCES=$(ls $CHPATH/$DISTNAME/var/lib/apt/lists/*_dists_${SUITE}_main_source_Sources)
-
+ echo "============================================================================="
+ echo "$(date -u) - Creating meta package sets for $SUITE now."
+ echo "============================================================================="
# finally
update_pkg_sets
- echo "$(date) - Done updating all meta package sets for $SUITE."
+ echo
+ echo "============================================================================="
+ echo "$(date -u) - Done updating all meta package sets for $SUITE."
done
rm -f $TMPFILE ${TMPFILE2}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list