summaryrefslogtreecommitdiff
path: root/mkbaselibs
diff options
context:
space:
mode:
authorRuediger Oertel <ro@suse.de>2008-10-21 22:53:34 +0000
committerRuediger Oertel <ro@suse.de>2008-10-21 22:53:34 +0000
commit990cad01df9cd7d7edc171d512a35c9b92950bbd (patch)
tree254df1bec1d4c30a306f2b954fff664cedfa3efd /mkbaselibs
parentc3de94d7a35cd3d5ddbf17d2392cdb4945d8e4b7 (diff)
downloadobs-build-990cad01df9cd7d7edc171d512a35c9b92950bbd.tar.gz
obs-build-990cad01df9cd7d7edc171d512a35c9b92950bbd.tar.bz2
obs-build-990cad01df9cd7d7edc171d512a35c9b92950bbd.zip
Generate debuginfo packages for baselibs (bnc #396196) (from jblunck)
Diffstat (limited to 'mkbaselibs')
-rwxr-xr-xmkbaselibs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkbaselibs b/mkbaselibs
index 415b714..6d1f9dc 100755
--- a/mkbaselibs
+++ b/mkbaselibs
@@ -408,6 +408,7 @@ sub parse_config {
my $pm = $1;
$pkgmatches = $pkgname =~ /$pm/;
$match1 = $1 if defined $1;
+ $pkghasmatched |= $pkgmatches;
next;
}
if (/^package\s+(.*?)$/) {
@@ -496,6 +497,9 @@ for my $rpm (splice @rpms) {
$rpmn =~ s/-[^-]+-[^-]+\.[^\.]+\.rpm$/\.rpm/;
$rpmn =~ s/\.rpm$//;
push @rpms, $rpm if $goodpkgs{$rpmn};
+ if ($rpmn =~ s/-debuginfo$//) {
+ push @rpms, $rpm if $goodpkgs{$rpmn};
+ }
}
for (@rpms) {
die("$_: need absolute path to rpm\n") unless /^\//;