aboutsummaryrefslogtreecommitdiffstats
path: root/gendistrib
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-01-23 19:20:47 +0000
committerFrancois Pons <fpons@mandriva.com>2001-01-23 19:20:47 +0000
commit0c6b7137257c111a7519e150b81694ed4b946a23 (patch)
tree25f94bc89e4c64ca0bea2388e66c232f4a24b5a2 /gendistrib
parent96c7624418b7b11ef42c95abb9059086de357c3b (diff)
downloadrpmtools-0c6b7137257c111a7519e150b81694ed4b946a23.tar
rpmtools-0c6b7137257c111a7519e150b81694ed4b946a23.tar.gz
rpmtools-0c6b7137257c111a7519e150b81694ed4b946a23.tar.bz2
rpmtools-0c6b7137257c111a7519e150b81694ed4b946a23.tar.xz
rpmtools-0c6b7137257c111a7519e150b81694ed4b946a23.zip
updated to use new build_hdlist.
Diffstat (limited to 'gendistrib')
-rwxr-xr-xgendistrib12
1 files changed, 6 insertions, 6 deletions
diff --git a/gendistrib b/gendistrib
index 910137f..1987bce 100755
--- a/gendistrib
+++ b/gendistrib
@@ -20,12 +20,12 @@ use strict qw(subs vars refs);
use rpmtools;
my $params = new rpmtools;
-my ($nohdlists, $nobasefiles, @root, @hdlists) = 0;
+my ($noclean, $nohdlists, $nobasefiles, @root, @hdlists) = 0;
-($params->{options}{noclean}, @ARGV) = @ARGV if $ARGV[0] eq "--noclean";
-($nohdlists, @ARGV) = @ARGV if $ARGV[0] eq "--nohdlists";
-($nobasefiles, @ARGV) = @ARGV if $ARGV[0] eq "--nobasefiles";
-(undef, @root, @ARGV) = @ARGV if $ARGV[0] eq "--distrib";
+($noclean, @ARGV) = @ARGV if $ARGV[0] eq "--noclean";
+($nohdlists, @ARGV) = @ARGV if $ARGV[0] eq "--nohdlists";
+($nobasefiles, @ARGV) = @ARGV if $ARGV[0] eq "--nobasefiles";
+(undef, @root, @ARGV) = @ARGV if $ARGV[0] eq "--distrib";
@root > 0 && @ARGV == 0 or die "usage: gendistrib [--noclean] [--nohdlists] [--nobasefiles] --distrib <root distrib> <root_distrib2> ...\n";
@@ -72,7 +72,7 @@ unless ($nohdlists) {
-d "$root/$dir" or die "unable to find a valid root directory which contains $dir\n";
print STDERR "building hdlist $hdlist as \"$descr\"\n with rpms directory $root/$dir\n";
- $params->build_hdlist($hdlist, glob("$root/$dir/*.rpm"));
+ $params->build_hdlist($noclean, ($ENV{TMPDIR} || "/tmp") . "/.build_hdlist", $hdlist, glob("$root/$dir/*.rpm"));
}
}