From 06371a53ca538f5355fcbe258156cdf2362f39db Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 16 Mar 2003 05:35:36 +0000 Subject: [PATCH] * Support rpms that contain no files. Closes: #184714 --- Alien/Package/Rpm.pm | 6 ++++-- debian/changelog | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Alien/Package/Rpm.pm b/Alien/Package/Rpm.pm index 376da16..d3b27c7 100644 --- a/Alien/Package/Rpm.pm +++ b/Alien/Package/Rpm.pm @@ -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 diff --git a/debian/changelog b/debian/changelog index 5856042..9eb9f90 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +alien (8.25) unstable; urgency=low + + * Support rpms that contain no files. Closes: #184714 + + -- Joey Hess Sat, 15 Mar 2003 21:34:33 -0800 + alien (8.24) unstable; urgency=low * Corrected precidence problem that made alien not catch mkdir of the work