<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/methods/copy.cc, branch 1.1.exp11</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=1.1.exp11</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=1.1.exp11'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2015-08-10T15:27:17Z</updated>
<entry>
<title>add c++11 override marker to overridden methods</title>
<updated>2015-08-10T15:27:17Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2015-07-08T22:35:40Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=3b3028467ceccca0b73a8f53051c0fa4de313111'/>
<id>urn:sha1:3b3028467ceccca0b73a8f53051c0fa4de313111</id>
<content type='text'>
C++11 adds the 'override' specifier to mark that a method is overriding
a base class method and error out if not. We hide it in the APT_OVERRIDE
macro to ensure that we keep compiling in pre-c++11 standards.

Reported-By: clang-modernize -add-override -override-macros
Git-Dch: Ignore
</content>
</entry>
<entry>
<title>allow individual targets to be kept compressed</title>
<updated>2015-08-10T15:25:26Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2015-06-30T08:53:51Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=653ef26c70dc9c0e2cbfdd4e79117876bb63e87d'/>
<id>urn:sha1:653ef26c70dc9c0e2cbfdd4e79117876bb63e87d</id>
<content type='text'>
There is an option to keep all targets (Packages, Sources, …) compressed
for a while now, but the all-or-nothing approach is a bit limited for
our purposes with additional targets as some of them are very big
(Contents) and rarely used in comparison, so keeping them compressed by
default can make sense, while others are still unpacked.

Most interesting is the copy-change maybe: Copy is used by the acquire
system as an uncompressor and it is hence expected that it returns the
hashes for the "output", not the input. Now, in the case of keeping a
file compressed, the output is never written to disk, but generated in
memory and we should still validated it, so for compressed files copy is
expected to return the hashes of the uncompressed file. We used to use
the config option to enable on-the-fly decompress in the method, but in
reality copy is never used in a way where it shouldn't decompress a
compressed file to get its hashes, so we can save us the trouble of
sending this information to the method and just do it always.
</content>
</entry>
<entry>
<title>calculate only expected hashes in methods</title>
<updated>2015-04-18T23:13:09Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2015-03-30T18:47:13Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=9224ce3d4d1ea0428a70e75134998e08aa45b1e6'/>
<id>urn:sha1:9224ce3d4d1ea0428a70e75134998e08aa45b1e6</id>
<content type='text'>
Methods get told which hashes are expected by the acquire system, which
means we can use this list to restrict what we calculate in the methods
as any extra we are calculating is wasted effort as we can't compare it
with anything anyway.

Adding support for a new hash algorithm is therefore 'free' now and if a
algorithm is no longer provided in a repository for a file, we
automatically stop calculating it.

In practice this results in a speed-up in Debian as we don't have SHA512
here (so far), so we practically stop calculating it.
</content>
</entry>
<entry>
<title>remove duplicated check for same file copy</title>
<updated>2015-04-18T23:13:08Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2015-03-27T17:56:44Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=936d5613e4b6145798c5a1d0c484158115576fa8'/>
<id>urn:sha1:936d5613e4b6145798c5a1d0c484158115576fa8</id>
<content type='text'>
Git-Dch: Ignore
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'upstream/debian/experimental' into feature/acq-trans</title>
<updated>2014-09-29T07:58:38Z</updated>
<author>
<name>Michael Vogt</name>
<email>mvo@debian.org</email>
</author>
<published>2014-09-29T07:58:38Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=4c333a25a88b1afac2ed50bf1b9af61dc5b09343'/>
<id>urn:sha1:4c333a25a88b1afac2ed50bf1b9af61dc5b09343</id>
<content type='text'>
Conflicts:
	apt-pkg/acquire-item.cc
	apt-pkg/acquire-item.h
	methods/gpgv.cc
</content>
</entry>
<entry>
<title>Merge branch 'debian/sid' into debian/experimental</title>
<updated>2014-09-29T06:33:33Z</updated>
<author>
<name>Michael Vogt</name>
<email>mvo@ubuntu.com</email>
</author>
<published>2014-09-29T06:33:33Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=48f3f1b24b48066cfc23342a5c6470ddf5e0fa6a'/>
<id>urn:sha1:48f3f1b24b48066cfc23342a5c6470ddf5e0fa6a</id>
<content type='text'>
Conflicts:
	apt-pkg/acquire-item.cc
</content>
</entry>
<entry>
<title>Disable Mth.DropPrivsOrDie() in copy.cc for now</title>
<updated>2014-09-26T15:50:18Z</updated>
<author>
<name>Michael Vogt</name>
<email>mvo@ubuntu.com</email>
</author>
<published>2014-09-26T15:50:18Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=d36b27305dae21f9b3b6de056853ecd8bbd157e6'/>
<id>urn:sha1:d36b27305dae21f9b3b6de056853ecd8bbd157e6</id>
<content type='text'>
Dch-Ignore: true
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'upstream/debian/experimental' into feature/acq-trans</title>
<updated>2014-09-25T10:33:26Z</updated>
<author>
<name>Michael Vogt</name>
<email>mvo@ubuntu.com</email>
</author>
<published>2014-09-25T10:33:26Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=e31a89e668596ea86c8f3a08429cd2f48286e734'/>
<id>urn:sha1:e31a89e668596ea86c8f3a08429cd2f48286e734</id>
<content type='text'>
</content>
</entry>
<entry>
<title>methods: Fail if we cannot drop privileges</title>
<updated>2014-09-24T19:49:19Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2014-09-24T19:49:19Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=7b18d5592fd5e0bb173e193d1e6693a66065f971'/>
<id>urn:sha1:7b18d5592fd5e0bb173e193d1e6693a66065f971</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Drop Privileges to "Debian-apt" in most acquire methods</title>
<updated>2014-09-24T14:22:05Z</updated>
<author>
<name>Michael Vogt</name>
<email>mvo@ubuntu.com</email>
</author>
<published>2014-09-24T14:22:05Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=3927c6da48c206b6b251661f44680d9883b4f6b4'/>
<id>urn:sha1:3927c6da48c206b6b251661f44680d9883b4f6b4</id>
<content type='text'>
Add a new "Debian-apt" user that owns the /var/lib/apt/lists
and /var/cache/apt/archive directories. The methods
http, https, ftp, gpgv, gzip switch to this user when they
start.

Thanks to Julian and "ioerror" and tors "switch_id()" code.
</content>
</entry>
</feed>
