diff -Nru alien-8.79/Alien/Package/Rpm.pm alien-8.79ubuntu1/Alien/Package/Rpm.pm --- alien-8.79/Alien/Package/Rpm.pm 2009-10-19 13:34:17.000000000 -0700 +++ alien-8.79ubuntu1/Alien/Package/Rpm.pm 2010-07-01 14:59:47.000000000 -0700 @@ -261,12 +261,17 @@ if (defined($owninfo{$file}) && ($mode & 07000 > 0)) { $modeinfo{$file} = sprintf "%lo", $mode; } - if ($> == 0) { - $this->do("chown", "$uid:$gid", "$workdir/$file") - || die "failed chowning $file to $uid\:$gid\: $!"; + # Note that %ghost files exist in the control data but not + # in the cpio archive, so check that the latter exists + # before trying to access it + if (-e "$workdir/$file") { + if ($> == 0) { + $this->do("chown", "$uid:$gid", "$workdir/$file") + || die "failed chowning $file to $uid\:$gid\: $!"; + } + $this->do("chmod", sprintf("%lo", $mode), "$workdir/$file") + || die "failed changing mode of $file to $mode\: $!"; } - $this->do("chmod", sprintf("%lo", $mode), "$workdir/$file") - || die "failed changing mode of $file to $mode\: $!"; } $this->owninfo(\%owninfo); $this->modeinfo(\%modeinfo); diff -Nru alien-8.79/debian/changelog alien-8.79ubuntu1/debian/changelog --- alien-8.79/debian/changelog 2009-12-01 10:24:04.000000000 -0800 +++ alien-8.79ubuntu1/debian/changelog 2010-07-01 15:01:02.000000000 -0700 @@ -1,3 +1,10 @@ +alien (8.79ubuntu1) lucid; urgency=low + + * Fix for rpm with ghost files branched to lucid from 8.81 (maverick). + Closes: #507326 + + -- Chuck McIntyre Thu, 01 Jul 2010 15:00:06 -0700 + alien (8.79) unstable; urgency=low * Typo. Closes: #554379