aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-01-07 15:28:28 +0000
committerOlivier Blin <oblin@mandriva.com>2008-01-07 15:28:28 +0000
commit4209a52a69ea87794c293011ce964e3c8c1dd3ec (patch)
tree4e113e746e613ac899e88b838db2fff8de62fb60 /lib/Iurt
parentc514d5382b0ff30beebdc422fcb37c27e2daf729 (diff)
downloadiurt-4209a52a69ea87794c293011ce964e3c8c1dd3ec.tar
iurt-4209a52a69ea87794c293011ce964e3c8c1dd3ec.tar.gz
iurt-4209a52a69ea87794c293011ce964e3c8c1dd3ec.tar.bz2
iurt-4209a52a69ea87794c293011ce964e3c8c1dd3ec.tar.xz
iurt-4209a52a69ea87794c293011ce964e3c8c1dd3ec.zip
add --dkms -p option to iurt to allow rebuilding specific packages only
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/DKMS.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm
index 9ed4333..81a4619 100644
--- a/lib/Iurt/DKMS.pm
+++ b/lib/Iurt/DKMS.pm
@@ -70,9 +70,11 @@ sub search_dkms {
if ($rpm =~ /^dkms-(.*)-([^-]+-[^-]+)\.[^.]+\.rpm/) {
# we only check for kernel or modules in this media
$media_ok or next;
+ my ($name, $version) = ($1, $2);
+ my $package_ok = $run->{dkms}{package} ? $name =~ /$run->{dkms}{package}/ : 1;
+ $package_ok or next;
my $hdr = RPM4::Header->new("$path/$rpm");
my $files = $hdr->queryformat('[%{FILENAMES} ])');
- my ($name, $version) = ($1, $2);
my ($modulesourcedir) = $files =~ m, /usr/src/([^/ ]+),;
my $script = $hdr->queryformat('%{POSTIN})');
my ($realversion) = $script =~ / -v (\S+)/;