* Support rpms that contain no files. Closes: #184714

This commit is contained in:
joey
2003-03-16 05:35:36 +00:00
parent 40e12efe45
commit 06371a53ca
2 changed files with 10 additions and 2 deletions

View File

@@ -172,8 +172,10 @@ sub unpack {
}
}
# Now move all files in the package to the directory we made.
(system("mv", @filelist, "$workdir/".$this->prefixes) == 0)
or die "error moving unpacked files into the default prefix directory: $!";
if (@filelist) {
(system("mv", @filelist, "$workdir/".$this->prefixes) == 0)
or die "error moving unpacked files into the default prefix directory: $!";
}
}
# cpio does not necessarily store all parent directories in an