Accepting request 95699 from Base:System

- ignore debuginfo and debugsource packages for packaged-twice

OBS-URL: https://build.opensuse.org/request/show/95699
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/post-build-checks?expand=0&rev=57
This commit is contained in:
Stephan Kulow 2011-12-07 13:39:17 +00:00 committed by Git OBS Bridge
commit 8dc62efda3
3 changed files with 9 additions and 3 deletions

View File

@ -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 = <ALL_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 = <FILES>;
+ chomp @files;

View File

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

View File

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