forked from pool/post-build-checks
- ignore debuginfo and debugsource packages for packaged-twice
OBS-URL: https://build.opensuse.org/package/show/Base:System/post-build-checks?expand=0&rev=57
This commit is contained in:
parent
8328e2537c
commit
9a02761b78
4
new.diff
4
new.diff
@ -1,7 +1,7 @@
|
|||||||
Index: post-build-checks-1.0/checks/09-check-packaged-twice
|
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.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 @@
|
@@ -1,61 +1,74 @@
|
||||||
-#!/usr/bin/perl
|
-#!/usr/bin/perl
|
||||||
+#!/usr/bin/perl -w
|
+#!/usr/bin/perl -w
|
||||||
@ -48,7 +48,6 @@ Index: post-build-checks-1.0/checks/09-check-packaged-twice
|
|||||||
|
|
||||||
-if ( $#RPMS < 1 ) {
|
-if ( $#RPMS < 1 ) {
|
||||||
- exit 0;
|
- exit 0;
|
||||||
+print "chroot $build_root find $TOPDIR/RPMS -name \"*.rpm\"\n";
|
|
||||||
+open (ALL_RPMS, "chroot $build_root find $TOPDIR/RPMS/ -name \"*.rpm\" |");
|
+open (ALL_RPMS, "chroot $build_root find $TOPDIR/RPMS/ -name \"*.rpm\" |");
|
||||||
+my @rpms = <ALL_RPMS>;
|
+my @rpms = <ALL_RPMS>;
|
||||||
+chomp @rpms;
|
+chomp @rpms;
|
||||||
@ -60,6 +59,7 @@ Index: post-build-checks-1.0/checks/09-check-packaged-twice
|
|||||||
+my %pkg2rpm;
|
+my %pkg2rpm;
|
||||||
+
|
+
|
||||||
+for my $rpm (@rpms) {
|
+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|");
|
+ open (FILES, "chroot $build_root rpm -qp --qf '[%{FILEMODES:perms} F:%{FILEFLAGS:fflags} %{NAME} %{FILENAMES}\n]' $rpm|");
|
||||||
+ my @files = <FILES>;
|
+ my @files = <FILES>;
|
||||||
+ chomp @files;
|
+ chomp @files;
|
||||||
|
@ -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
|
Thu Dec 1 16:36:29 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -15,10 +15,11 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: post-build-checks
|
Name: post-build-checks
|
||||||
|
Summary: post checks for build after rpms have been created
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
Summary: post checks for build after rpms have been created
|
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
PreReq: aaa_base permissions sed
|
PreReq: aaa_base permissions sed
|
||||||
|
Loading…
Reference in New Issue
Block a user