diff options
author | Francois Pons <fpons@mandriva.com> | 2001-01-23 19:20:47 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-01-23 19:20:47 +0000 |
commit | 0c6b7137257c111a7519e150b81694ed4b946a23 (patch) | |
tree | 25f94bc89e4c64ca0bea2388e66c232f4a24b5a2 | |
parent | 96c7624418b7b11ef42c95abb9059086de357c3b (diff) | |
download | rpmtools-0c6b7137257c111a7519e150b81694ed4b946a23.tar rpmtools-0c6b7137257c111a7519e150b81694ed4b946a23.tar.gz rpmtools-0c6b7137257c111a7519e150b81694ed4b946a23.tar.bz2 rpmtools-0c6b7137257c111a7519e150b81694ed4b946a23.tar.xz rpmtools-0c6b7137257c111a7519e150b81694ed4b946a23.zip |
updated to use new build_hdlist.
-rwxr-xr-x | gendistrib | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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")); } } |