]> git.saurik.com Git - apt.git/commit
use one 'store' method to rule all (de)compressors
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 3 Jan 2016 18:23:30 +0000 (19:23 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 8 Jan 2016 14:40:01 +0000 (15:40 +0100)
commit9bd2313a5c7523501bcec398877489c5a1fc1415
treec0478eaac2a4ce97ab0582246324e4ed73ade388
parent83758aed35c3eec66008b2ec01957c8e1cb129b5
use one 'store' method to rule all (de)compressors

Adding a new compressor method meant adding a new method as well – even
if that boilt down to just linking to our generalized decompressor with
a new name. That is unneeded busywork if we can instead just call the
generalized decompressor and let it figure out which compressor to use
based on the filenames rather than by program name.

For compatibility we ship still 'gzip', 'bzip2' and co, but they are
just links to our "new" 'store' method.
apt-pkg/acquire-item.cc
methods/gzip.cc [deleted file]
methods/makefile
methods/store.cc [new file with mode: 0644]
test/integration/test-bug-595691-empty-and-broken-archive-files