<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/apt-pkg/contrib/fileutl.cc, branch 2.0.2</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=2.0.2</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=2.0.2'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2020-03-06T12:07:55Z</updated>
<entry>
<title>GetLock: No strerror if it's just another process holding the lock</title>
<updated>2020-03-06T12:07:55Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2020-03-06T12:07:55Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=68a83a64cd424385b613f58e23c03e262d840b91'/>
<id>urn:sha1:68a83a64cd424385b613f58e23c03e262d840b91</id>
<content type='text'>
This improves the locking message, getting rid of useless details. If
we have a process holding the lock, we got that because the lock is
being hold by it, so there's no point telling the people the reason
for not getting the lock is the EAGAIN error and displaying its
strerrror().
</content>
</entry>
<entry>
<title>Raise buffer size for Hashes::AddFD() from 4 KiB to 64 KiB</title>
<updated>2020-01-14T12:10:36Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2020-01-07T18:55:48Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=b350560e34a369ef7610f9fceeffb00660209390'/>
<id>urn:sha1:b350560e34a369ef7610f9fceeffb00660209390</id>
<content type='text'>
Move APT_BUFFER_SIZE to macros.h and re-use it in hashes,
this also might speed up stuff, the motivation for using
64 KiB buffers in fileutl.cc was precisely that after all.
</content>
</entry>
<entry>
<title>Fix some style warnings from cppcheck</title>
<updated>2019-11-26T11:36:46Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2019-09-13T10:01:47Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=35012abf30ec1cfc9b5ee29647d4b1e25d98e99f'/>
<id>urn:sha1:35012abf30ec1cfc9b5ee29647d4b1e25d98e99f</id>
<content type='text'>
Unused variable, std::algorithms instead of raw for-loops.
There should be no observeable difference in behaviour.

Reported-By: cppcheck
Gbp-Dch: Ignore
</content>
</entry>
<entry>
<title>Improve locking messaging - pid and name, "do not remove lock file"</title>
<updated>2019-06-21T21:14:46Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-06-21T20:45:13Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=cde8399310e56faaa6928411392184bc403eff66'/>
<id>urn:sha1:cde8399310e56faaa6928411392184bc403eff66</id>
<content type='text'>
We want to tell users which process is holding the lock so they
can easily understand what's going on, and we want to advise
users not to remove the lock file, because ugh, that's bad.

Re-initalize the flock structure, in case it got mangled by
previous fcntl call.
</content>
</entry>
<entry>
<title>Prevent shutdown while running dpkg</title>
<updated>2019-05-03T14:37:50Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-04-15T09:32:50Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=60cc44d160af02c49614653c97bfa3e4e5c9601d'/>
<id>urn:sha1:60cc44d160af02c49614653c97bfa3e4e5c9601d</id>
<content type='text'>
As long as we are running dpkg, keep an inhibitor that
blocks us from shutting down.

LP: #1820886
</content>
</entry>
<entry>
<title>Add 'explicit' to most single argument constructors</title>
<updated>2019-04-30T15:43:31Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-04-30T10:07:07Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=b52c6552c44fcb997b0db9f5e9f17b4674dd5359'/>
<id>urn:sha1:b52c6552c44fcb997b0db9f5e9f17b4674dd5359</id>
<content type='text'>
This prevents implicit conversions that we do not want, such
as having a FileFd* being converted to a debListParser.

Two cases are not yet handled because they require changes
in code using them:

1. The classes in hashes.h
2. The URI class - this one is used quite a lot
</content>
</entry>
<entry>
<title>fileutl: Merge Popen variants</title>
<updated>2019-02-26T15:31:20Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-02-26T13:36:42Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=e1024dc0acf72b9615c0821f005364543775a58a'/>
<id>urn:sha1:e1024dc0acf72b9615c0821f005364543775a58a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fileutl: Remove deprecated functions such as gzFd()</title>
<updated>2019-02-26T15:31:20Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-02-26T12:44:23Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=680b916ce7203a40ebd0a3882b9a71ca77278a67'/>
<id>urn:sha1:680b916ce7203a40ebd0a3882b9a71ca77278a67</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sptr: Remove deprecated smart pointer classes</title>
<updated>2019-02-26T15:31:20Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-02-26T12:21:07Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=29465ea9555a453ca733280955505de8bfcce935'/>
<id>urn:sha1:29465ea9555a453ca733280955505de8bfcce935</id>
<content type='text'>
Please use the standard C++ variants instead.
</content>
</entry>
<entry>
<title>gpgv: Use buffered writes for splitting clearsigned files</title>
<updated>2019-02-04T13:43:16Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-02-04T13:43:16Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=cde5ee8fe527d3d672775909d27110d11c393774'/>
<id>urn:sha1:cde5ee8fe527d3d672775909d27110d11c393774</id>
<content type='text'>
This is safe here, as the code ensures that the file is flushed
before it is being used. The next series should probably make
GetTempFile() buffer writes by default.
</content>
</entry>
</feed>
