mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
Silence error message when deleting build tree after making an rpm, if rpmbuild has already deleted it.
This commit is contained in:
@@ -339,14 +339,17 @@ sub DESTROY {
|
|||||||
die "alien internal error: unpacked_tree is set to '/'. Please file a bug report!";
|
die "alien internal error: unpacked_tree is set to '/'. Please file a bug report!";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Just in case some dir perms are too screwed up for rm to work and
|
if (-d $this->unpacked_tree) {
|
||||||
# we're not running as root. NB: can't use xargs
|
# Just in case some dir perms are too screwed up for
|
||||||
$this->do('find', $this->unpacked_tree, '-type', 'd',
|
# rm to work and we're not running as root. NB: can't
|
||||||
'-exec', 'chmod', '755', '{}', ';');
|
# use xargs
|
||||||
|
$this->do('find', $this->unpacked_tree, '-type', 'd',
|
||||||
|
'-exec', 'chmod', '755', '{}', ';');
|
||||||
|
|
||||||
$this->do('rm', '-rf', $this->unpacked_tree)
|
$this->do('rm', '-rf', $this->unpacked_tree)
|
||||||
or die "unable to delete temporary directory '".$this->unpacked_tree."': $!";
|
or die "unable to delete temporary directory '".$this->unpacked_tree."': $!";
|
||||||
$this->unpacked_tree('');
|
$this->unpacked_tree('');
|
||||||
|
}
|
||||||
|
|
||||||
$?=$exitcode;
|
$?=$exitcode;
|
||||||
}
|
}
|
||||||
|
|||||||
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
alien (8.84) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Silence error message when deleting build tree after making an rpm,
|
||||||
|
if rpmbuild has already deleted it.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Thu, 06 Jan 2011 13:47:10 -0400
|
||||||
|
|
||||||
alien (8.83) unstable; urgency=low
|
alien (8.83) unstable; urgency=low
|
||||||
|
|
||||||
* Correct handling of arch all packages in deb arch check. Closes: #596209
|
* Correct handling of arch all packages in deb arch check. Closes: #596209
|
||||||
|
|||||||
Reference in New Issue
Block a user