From de4ee4163c2dc9ad6f270b6105a2cee6ea810550363c8a04f804d3ddddbd84ae Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Wed, 29 Jul 2009 15:34:24 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/post-build-checks?expand=0&rev=21 --- check-debuginfo.diff | 11 +++++++++++ post-build-checks.changes | 5 +++++ post-build-checks.spec | 4 +++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 check-debuginfo.diff diff --git a/check-debuginfo.diff b/check-debuginfo.diff new file mode 100644 index 0000000..120ccfc --- /dev/null +++ b/check-debuginfo.diff @@ -0,0 +1,11 @@ +--- 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 @@ + fast= + test -x /usr/lib/rpm/rpmi && fast="--nodigest --nosignature" + +-RPMS=`find $BUILD_ROOT/usr/src/packages/RPMS -name "*-debuginfo-*.rpm"` ++RPMS=`find $BUILD_ROOT/usr/src/packages/RPMS -name "*-debuginfo-*.rpm" -o -name "*-debugsource-*.rpm"` + test -z "$RPMS" && exit 0 + for rpm in $RPMS ; do + HAS_DEBUG= diff --git a/post-build-checks.changes b/post-build-checks.changes index b53d889..4fc3a08 100644 --- a/post-build-checks.changes +++ b/post-build-checks.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 27 16:53:13 CEST 2009 - rguenther@suse.de + +- also remove empty debugsource packages + ------------------------------------------------------------------- Wed Jun 24 16:45:44 CEST 2009 - coolo@novell.com diff --git a/post-build-checks.spec b/post-build-checks.spec index 87151f6..006f983 100644 --- a/post-build-checks.spec +++ b/post-build-checks.spec @@ -24,12 +24,13 @@ Group: Development/Tools/Building AutoReqProv: on Summary: post checks for build after rpms have been created Version: 1.0 -Release: 62 +Release: 63 PreReq: aaa_base permissions sed Source0: %{name}-%{version}.tar.bz2 Source1: suse-buildsystem.sh BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +Patch: check-debuginfo.diff %description some scripts to check for problems like test-installing the newly @@ -44,6 +45,7 @@ it may not be a good idea to install this to a running system: %prep %setup -q +%patch %build # nothing to do