blob: c69341515cf3971a90b156c840d8d8ebcae778a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- bin/rinse~
+++ bin/rinse
@@ -334,7 +334,7 @@ exit;
sub testSetup {
- my @required = qw/ rpm rpm2cpio wget /;
+ my @required = qw/ bsdtar fetch /;
foreach my $file (@required) {
if ( ( !-x "/bin/$file" ) && ( !-x "/usr/bin/$file" ) ) {
@@ -840,7 +840,7 @@ sub downloadPackagesToDirectory {
print $msg;
# download - unless already present.
- system("wget --quiet -O $dir/$key $links{ $key }") unless -e "$dir/$key";
+ system("fetch -w10 -qo $dir/$key $links{ $key }") unless -e "$dir/$key";
next PACKAGE;
}
print "[Harmless] Failed to find download link for $package\n";
@@ -1147,7 +1147,7 @@ sub unpackPackages {
# Run the unpacking command.
#
my $cmd =
- "rpm2cpio $file | (cd $CONFIG{'directory'} ; cpio --extract --extract-over-symlinks --make-directories --no-absolute-filenames --preserve-modification-time) 2>/dev/null >/dev/null";
+ "bsdtar xPf $file --chroot -C $CONFIG{'directory'}";
if ( $file =~ /(fedora|centos|redhat|mandriva)-release-/ ) {
my $rpmname = basename($file);
$postcmd =
|