fixed tree cleaning

This commit is contained in:
joey
2000-04-21 02:28:52 +00:00
parent e142f96f77
commit 3a137ecdd4
2 changed files with 4 additions and 2 deletions

View File

@@ -61,6 +61,7 @@ Using dpkg-deb is a lot more future-proof, but the system may not have it.
sub read_file {
my $this=shift;
$this->SUPER::read_file(@_);
my $file=$this->filename;
# Extract the control file from the deb file.
my @control;
@@ -164,6 +165,7 @@ Implment the unpack method to unpack a deb file.
sub unpack {
my $this=shift;
$this->SUPER::unpack(@_);
my $file=$this->filename;
if ($this->have_dpkg_deb) {
system("dpkg-deb -x $file ".$this->unpacked_tree) &&