diff --git a/new.diff b/new.diff index a59e774..372c7dc 100644 --- a/new.diff +++ b/new.diff @@ -1,7 +1,7 @@ Index: post-build-checks-1.0/checks/09-check-packaged-twice =================================================================== --- post-build-checks-1.0.orig/checks/09-check-packaged-twice 2011-10-20 11:57:54.000000000 +0200 -+++ post-build-checks-1.0/checks/09-check-packaged-twice 2011-12-01 17:36:22.894836849 +0100 ++++ post-build-checks-1.0/checks/09-check-packaged-twice 2011-12-07 10:59:53.350691785 +0100 @@ -1,61 +1,74 @@ -#!/usr/bin/perl +#!/usr/bin/perl -w @@ -48,7 +48,6 @@ Index: post-build-checks-1.0/checks/09-check-packaged-twice -if ( $#RPMS < 1 ) { - exit 0; -+print "chroot $build_root find $TOPDIR/RPMS -name \"*.rpm\"\n"; +open (ALL_RPMS, "chroot $build_root find $TOPDIR/RPMS/ -name \"*.rpm\" |"); +my @rpms = ; +chomp @rpms; @@ -60,6 +59,7 @@ Index: post-build-checks-1.0/checks/09-check-packaged-twice +my %pkg2rpm; + +for my $rpm (@rpms) { ++ next if ($rpm =~ m/-debuginfo/ || $rpm =~ m/-debugsource/); + open (FILES, "chroot $build_root rpm -qp --qf '[%{FILEMODES:perms} F:%{FILEFLAGS:fflags} %{NAME} %{FILENAMES}\n]' $rpm|"); + my @files = ; + chomp @files; diff --git a/post-build-checks.changes b/post-build-checks.changes index bf2ef6c..74b90d6 100644 --- a/post-build-checks.changes +++ b/post-build-checks.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 7 10:00:08 UTC 2011 - coolo@suse.com + +- ignore debuginfo and debugsource packages for packaged-twice + ------------------------------------------------------------------- Thu Dec 1 16:36:29 UTC 2011 - coolo@suse.com diff --git a/post-build-checks.spec b/post-build-checks.spec index 3ab4346..44e7856 100644 --- a/post-build-checks.spec +++ b/post-build-checks.spec @@ -15,10 +15,11 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: post-build-checks +Summary: post checks for build after rpms have been created License: GPL-2.0+ Group: Development/Tools/Building -Summary: post checks for build after rpms have been created Version: 1.0 Release: 0 PreReq: aaa_base permissions sed