1
0
OBS User unknown 2009-07-30 11:02:08 +00:00 committed by Git OBS Bridge
parent de4ee4163c
commit bcdefa1274
3 changed files with 49 additions and 4 deletions

View File

@ -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

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 30 10:11:52 CEST 2009 - rguenther@suse.de
- simplify and fix empty debuginfo/source deletion
-------------------------------------------------------------------
Mon Jul 27 16:53:13 CEST 2009 - rguenther@suse.de

View File

@ -24,7 +24,7 @@ Group: Development/Tools/Building
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