diff --git a/Alien/Package.pm b/Alien/Package.pm index e34b470..4c97e45 100644 --- a/Alien/Package.pm +++ b/Alien/Package.pm @@ -339,14 +339,17 @@ sub DESTROY { 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 - # we're not running as root. NB: can't use xargs - $this->do('find', $this->unpacked_tree, '-type', 'd', - '-exec', 'chmod', '755', '{}', ';'); + if (-d $this->unpacked_tree) { + # Just in case some dir perms are too screwed up for + # rm to work and we're not running as root. NB: can't + # use xargs + $this->do('find', $this->unpacked_tree, '-type', 'd', + '-exec', 'chmod', '755', '{}', ';'); - $this->do('rm', '-rf', $this->unpacked_tree) - or die "unable to delete temporary directory '".$this->unpacked_tree."': $!"; - $this->unpacked_tree(''); + $this->do('rm', '-rf', $this->unpacked_tree) + or die "unable to delete temporary directory '".$this->unpacked_tree."': $!"; + $this->unpacked_tree(''); + } $?=$exitcode; } diff --git a/debian/changelog b/debian/changelog index d0ddb70..c708e6f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 06 Jan 2011 13:47:10 -0400 + alien (8.83) unstable; urgency=low * Correct handling of arch all packages in deb arch check. Closes: #596209