aboutsummaryrefslogtreecommitdiffstats
path: root/editdistrib
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2005-10-10 23:26:53 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2005-10-10 23:26:53 +0000
commit3e6abd178beca15c174316814852798ba135c46c (patch)
tree43a450673212f90a7765128685f1b5f581e03d8c /editdistrib
parent5b7352bf86cb607bdbf1ba99e29eca641f8d1627 (diff)
downloadrpmtools-3e6abd178beca15c174316814852798ba135c46c.tar
rpmtools-3e6abd178beca15c174316814852798ba135c46c.tar.gz
rpmtools-3e6abd178beca15c174316814852798ba135c46c.tar.bz2
rpmtools-3e6abd178beca15c174316814852798ba135c46c.tar.xz
rpmtools-3e6abd178beca15c174316814852798ba135c46c.zip
- add addmedia()
- use MDV::...
Diffstat (limited to 'editdistrib')
-rwxr-xr-xeditdistrib11
1 files changed, 8 insertions, 3 deletions
diff --git a/editdistrib b/editdistrib
index db26a1f..f016595 100755
--- a/editdistrib
+++ b/editdistrib
@@ -5,7 +5,7 @@
use strict;
use warnings;
-use Distribconf::Build;
+use MDV::Distribconf::Build;
use Term::ReadLine;
use Text::ParseWords;
use Getopt::Long;
@@ -24,7 +24,7 @@ my $commands = {
return;
}
foreach (@_) {
- my $dbuild = Distribconf::Build->new($_);
+ my $dbuild = MDV::Distribconf::Build->new($_);
$dbuild->load() or do {
print STDERR "Can't load distrib from $_\n";
next;
@@ -108,7 +108,12 @@ my $commands = {
},
addmedia => sub {
- }
+ local @ARGV = @_;
+ my ($m, $name) = @ARGV;
+ foreach (@distribs) {
+ $_->setvalue($m);
+ }
+ },
};