summaryrefslogtreecommitdiffstats
path: root/lib/MGA/DrakISO/BuildMedia.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MGA/DrakISO/BuildMedia.pm')
-rw-r--r--lib/MGA/DrakISO/BuildMedia.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/MGA/DrakISO/BuildMedia.pm b/lib/MGA/DrakISO/BuildMedia.pm
index 9ed9026..c1472c8 100644
--- a/lib/MGA/DrakISO/BuildMedia.pm
+++ b/lib/MGA/DrakISO/BuildMedia.pm
@@ -682,10 +682,12 @@ sub update_package_selection {
foreach my $alternative (@alternatives) {
$action->($file, $alternative, $class);
}
- } elsif ($pkg =~ /-$/) {
+ } elsif ($pkg =~ /[?*]/) {
print " expanding package $pkg\n" if $::verbose > 1;
+ $pkg =~ s/\?/.?/g;
+ $pkg =~ s/\*/.*/g;
my $available_list = $build->get_builddir('tmp') . '/pkg-available.lst';
- my @candidates = split('\n', `LC_ALL=C grep '^$pkg' $available_list`);
+ my @candidates = split('\n', `LC_ALL=C grep '^$pkg\$' $available_list`);
foreach (@candidates) {
$action->($file, $_, $class) ;
}