mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
Support RPMs containing ghost files.
(Patch by Ben Webb, who would get his patches applied quicker if he actually communicated them to the program's author.)
This commit is contained in:
@@ -274,6 +274,10 @@ sub unpack {
|
|||||||
if (defined($owninfo{$file}) && (($mode & 07000) > 0)) {
|
if (defined($owninfo{$file}) && (($mode & 07000) > 0)) {
|
||||||
$modeinfo{$file} = sprintf "%lo", $mode;
|
$modeinfo{$file} = sprintf "%lo", $mode;
|
||||||
}
|
}
|
||||||
|
# Note that ghost files exist in the metadata but not
|
||||||
|
# in the cpio archive, so check that the file exists
|
||||||
|
# before trying to access it
|
||||||
|
if (-e "$workdir/$file") {
|
||||||
if ($> == 0) {
|
if ($> == 0) {
|
||||||
$this->do("chown", "$uid:$gid", "$workdir/$file")
|
$this->do("chown", "$uid:$gid", "$workdir/$file")
|
||||||
|| die "failed chowning $file to $uid\:$gid\: $!";
|
|| die "failed chowning $file to $uid\:$gid\: $!";
|
||||||
@@ -281,6 +285,7 @@ sub unpack {
|
|||||||
$this->do("chmod", sprintf("%lo", $mode), "$workdir/$file")
|
$this->do("chmod", sprintf("%lo", $mode), "$workdir/$file")
|
||||||
|| die "failed changing mode of $file to $mode\: $!";
|
|| die "failed changing mode of $file to $mode\: $!";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$this->owninfo(\%owninfo);
|
$this->owninfo(\%owninfo);
|
||||||
$this->modeinfo(\%modeinfo);
|
$this->modeinfo(\%modeinfo);
|
||||||
|
|
||||||
|
|||||||
3
debian/changelog
vendored
3
debian/changelog
vendored
@@ -12,6 +12,9 @@ alien (8.81) UNRELEASED; urgency=low
|
|||||||
(Patch by Duane Waddle, on a bug tracking system I don't frequent, that
|
(Patch by Duane Waddle, on a bug tracking system I don't frequent, that
|
||||||
was about the "expire" it 4 days from now. We got lucky Duane, but please
|
was about the "expire" it 4 days from now. We got lucky Duane, but please
|
||||||
use the Debian BTS next time!)
|
use the Debian BTS next time!)
|
||||||
|
* Support RPMs containing ghost files.
|
||||||
|
(Patch by Ben Webb, who would get his patches applied quicker if he
|
||||||
|
actually communicated them to the program's author.)
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Wed, 28 Apr 2010 11:29:19 -0400
|
-- Joey Hess <joeyh@debian.org> Wed, 28 Apr 2010 11:29:19 -0400
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user