Hello community, here is the log from the commit of package post-build-checks for openSUSE:Factory checked in at Thu Jul 30 13:02:02 CEST 2009. -------- --- post-build-checks/post-build-checks.changes 2009-07-29 15:49:10.000000000 +0200 +++ /mounts/work_src_done/STABLE/post-build-checks/post-build-checks.changes 2009-07-30 10:34:01.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Jul 30 10:11:52 CEST 2009 - rguenther@suse.de + +- simplify and fix empty debuginfo/source deletion + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ post-build-checks.spec ++++++ --- /var/tmp/diff_new_pack.tLCMBY/_old 2009-07-30 13:01:40.000000000 +0200 +++ /var/tmp/diff_new_pack.tLCMBY/_new 2009-07-30 13:01:40.000000000 +0200 @@ -24,7 +24,7 @@ AutoReqProv: on Summary: post checks for build after rpms have been created Version: 1.0 -Release: 63 +Release: 64 PreReq: aaa_base permissions sed Source0: %{name}-%{version}.tar.bz2 Source1: suse-buildsystem.sh ++++++ check-debuginfo.diff ++++++ --- /var/tmp/diff_new_pack.tLCMBY/_old 2009-07-30 13:01:40.000000000 +0200 +++ /var/tmp/diff_new_pack.tLCMBY/_new 2009-07-30 13:01:40.000000000 +0200 @@ -1,6 +1,8 @@ ---- checks/01-check-debuginfo.orig 2009-07-27 16:52:05.000000000 +0200 -+++ checks/01-check-debuginfo 2009-07-27 16:52:09.000000000 +0200 -@@ -5,7 +5,7 @@ +Index: checks/01-check-debuginfo +=================================================================== +--- checks/01-check-debuginfo.orig 2008-07-14 13:47:43.000000000 +0200 ++++ checks/01-check-debuginfo 2009-07-30 10:11:30.000000000 +0200 +@@ -5,7 +5,7 @@ echo "... testing for empty debuginfo pa fast= test -x /usr/lib/rpm/rpmi && fast="--nodigest --nosignature" @@ -9,3 +11,41 @@ test -z "$RPMS" && exit 0 for rpm in $RPMS ; do HAS_DEBUG= +@@ -16,34 +16,11 @@ for rpm in $RPMS ; do + /usr/src/debug/*) HAS_SRC=true ;; + esac + done +- if test -z "$HAS_DEBUG" ; then ++ if test -z "$HAS_DEBUG" -a -z "$HAS_SRC"; then + echo '!' +- echo "! ${rpm##*/}: no debug information, deleting package" +- echo '!' +- rm -f "$rpm" "${rpm/-debuginfo-/-debugsource-}" +- elif test -z "$HAS_SRC" ; then +- rpmsource=${rpm/-debuginfo-/-debugsource-} +- if test -s "${rpmsource}" ; then +-# for l in "$(rpm -qpl $fast ${rpmsource})" ; do +-# case "$l" in +-# /usr/src/debug/*) HAS_SRC=true ;; +-# "(contains no files)") HAS_SRC=""; break ;; +-# esac +-# done +- rpm -qpl $fast "${rpmsource}" | egrep -q "^/usr/src/debug/" && HAS_SRC=true +- if test -n "$HAS_SRC" ; then +- continue +- fi +- echo '!' +- echo "! ${rpmsource##*/}: no debug sources, deleting package" +- echo "! ${rpm##*/}: WARNING: this probably means the debug information is invalid" +- echo '!' +- rm -f "${rpmsource}" +- continue +- fi +- echo '!' +- echo "! ${rpm##*/}: WARNING: no sources in debuginfo package" ++ echo "! $rpm: empty debuginfo/debugsource package, deleting" + echo '!' ++ rm -f "$rpm" + fi + done + exit 0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org