Commit c1874c66 authored by Ryan Niebur's avatar Ryan Niebur

close files once they're parsed (Closes: #585448)

parent 897902ea
dpkg-ruby (0.3.7) UNRELEASED; urgency=low
[ Francesco Poli (t1000) ]
* add file name to broken archive exception (Closes: #590146)
-- Francesco Poli (t1000) <frx@firenze.linux.it> Sun, 25 Jul 2010 16:21:01 +0200
[ Ryan Niebur ]
* close files once they're parsed (Closes: #585448)
-- Ryan Niebur <ryan@debian.org> Sun, 04 Sep 2011 11:41:29 -0700
dpkg-ruby (0.3.6+nmu1) unstable; urgency=high
......
......@@ -115,7 +115,10 @@ module Debian
def deb?(debfile)
begin
Debian::Ar.new(debfile).open("debian-binary").read == DEBFORMAT_VERSION
f = Debian::Ar.new(debfile)
res = (f.open("debian-binary").read == DEBFORMAT_VERSION)
f.close
return res
rescue NameError, Debian::ArError
false
end
......@@ -568,6 +571,7 @@ module Debian
@data.push(line.chomp)
}
}
@artab.close
freeze
end
def control= (c); @control = c; end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment