summaryrefslogtreecommitdiff
path: root/debian
Commit message (Collapse)AuthorAgeFilesLines
* trigger NODATA error for invalid InRelease filesDavid Kalnischkies2013-06-201-0/+1
| | | | | | | | | | | | | | | | | With the selfgrown splitting we got the problem of not recovering from networks which just reply with invalid data like those sending us login pages to authenticate with the network (e.g. hotels) back. The good thing about the InRelease file is that we know that it must be clearsigned (a Release file might or might not have a detached sig) so if we get a file but are unable to split it something is seriously wrong, so there is not much point in trying further. The Acquire system already looks out for a NODATA error from gpgv, so this adds a new error message sent to the acquire system in case the splitting we do now ourselves failed including this magic word. Closes: #712486
* do not redownload unchanged InRelease filesDavid Kalnischkies2013-06-201-0/+1
| | | | | | | | | | | | Before we download the 'new' InRelease file the old file will be moved out of the way with the name 'foobar_InRelease.reverify', so if no partial file for the 'new' file exists take the modification time from this reverify file, so that if we get an IMS hit for the InRelease file we can move back the reverify file as new file rather than downloading the 'new' file even though we already have it. We do the same for Release files and this happened to work until the reverify renaming was corrected for InRelease files.
* support \n and \r\n line endings in ReadMessagesDavid Kalnischkies2013-06-201-0/+1
|
* try defaults if auto-detection failed in apt-cdromDavid Kalnischkies2013-06-201-0/+1
| | | | | | | | | | | | The default is to ask udev for location and mountpoints of CD-ROMs, but the old way of specifying the mountpoint is still available and is tried now in case udev doesn't find any CD-ROM. It probably fails, too, but we get a bunch of error messages this way and the user can get an idea of how to make his setup work even if udev can't be convienced to return something useful. Closes: #712433
* handle missing "Description" in apt-cache showDavid Kalnischkies2013-06-201-0/+1
| | | | | | | | | | | | do not blindly assume that all packages stanzas have a "Description:" field in 'apt-cache show' as well as in the cache creation itself. We instead assume now that if the stanza has a Description, it will not be the first field as we look out for "\nDescription" to take care of MD5sum as well as (maybe ignored) translated Descriptions embedded in the package stanza. Closes: #712435
* fix file location for configure-index.gz in apt.conf(5)David Kalnischkies2013-06-131-0/+1
| | | | Closes: #711921
* ensure state-dir exists before coyping cdrom filesDavid Kalnischkies2013-06-091-0/+1
| | | | | | We do the same in the acquire system which handles the 'normal' downloads, so do it here as well even though its unlikely anyone will ever notice (beside testcases of course …)
* fail in CopyFile if the FileFds have error flag setDavid Kalnischkies2013-06-091-0/+1
| | | | | | | | | Testing for global PendingErrors in users of CopyFile is incorrect in so far as unrelated errors will prevent us from copying perfectly fine files and checking for the validity of the files is just better in CopyFiles as it already checks if files are at least opened. Add also a higher-level error message to the error stack if it fails.
* OpenDescriptor should autoclose fd always on errorDavid Kalnischkies2013-06-091-0/+1
| | | | | | | | | OpenInternDescriptor failures would cause additional errors to be generated by double-closing an fd. Other errors (although these are generated if the method is used incorrectly, so unlikely) didn't close the fd aswell. Closes: 704608
* don't explicitly init ExtractTar InFd with invalid fdDavid Kalnischkies2013-06-091-0/+1
| | | | | | | The default constructor of the FileFd will kick in anyway, which will know that the Fd is invalid while with this explicit call it must be assumed that the fd is in fact valid, which might generate errors in the future
* set Fail flag in FileFd on all errors consistentlyDavid Kalnischkies2013-06-091-0/+1
| | | | | | Previously some errors would set the Fail flag while some didn't without a clear reason as all errors leave a bad FileFd behind, so we use a helper now to ensure that all errors set the flag.
* fix support for multiple patterns in apt-cache searchDavid Kalnischkies2013-06-091-5/+1
| | | | | | | Patterns can appear in the name as well as in the description, they don't have to match all in the name/description only. Closes: 691453
* do unpacks before configures in SmartConfigureDavid Kalnischkies2013-06-091-0/+1
| | | | | | | | | | | | | | | | | | Splits the big loop over dependencies in SmartConfigure which unpacks and configures dependencies into two loops and reverse their order, so that all dependencies which need to be unpacked are handled first and only after that configures are issued for dependencies. This is needed as otherwise the unpack of a (new) dependency will be issued in between a configure call for two (or more) packages which form a loop, which means the configure calls aren't part of the same dpkg call and therefore dpkg bails out. Such tight loops should really be avoided as they are usually wrong – and in reality the dependencies in libreoffice were greatly simplified thanks to Rene Engelhard so the problem is gone for the benefit of all. Closes: 707578
* try all providers in order if uninstallable in MarkInstallDavid Kalnischkies2013-06-091-0/+1
|
* fix priority sorting by prefering higher in MarkInstallDavid Kalnischkies2013-06-091-0/+1
| | | | | | | Used to work until a certain (here unnamed) person came along and used the wrong operator causing low-priority packages to be sorted above high-priority packages while choosing a provider in commit 2b5c35c7bb915dbd46fefd7c79f05364ba22f93b from Nov 2011
* prefer Essentials over Removals in ordering scoreDavid Kalnischkies2013-06-091-0/+1
| | | | | | | | | | | | | | Doing Removes early is good to have them out of the way, so they don't break 'Inst' or 'Conf' chains, but scoring them above Essentials means that we end up upgrading (many) less important packages before we handle big stuff like libc6 or debconf which not only fails if those less important packages have unannounced (strict) dependencies, but also leads to having these packages unconfigured for a long time triggering bugs in maintainer scripts for no good reason (#708831). So this commits sets the default value for remove scores to 100, which is below the one for essentials (200) and a lot lower than the previous default value (500).
* rewrite pkgOrderList::DepRemove to stop incorrect immediate settingDavid Kalnischkies2013-06-091-0/+2
| | | | | | | | | | | | Some squeeze → wheezy upgrades indicate that DepRemove runs amok in complicated setups as it wasn't correctly working with or-groups. Completely rewritten the check is now moving from or-group to or-group instead. The behavior should be the same as the code before, but (hopefully) with less bugs and more comments. Closes: 645713
* remove -ldl from cdrom and -lutil from apt-get linkageDavid Kalnischkies2013-06-091-1/+1
| | | | | | | | | | Building src:apt shows: dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/apt/usr/lib/apt/methods/cdrom was not linked against libdl.so.2 (it uses none of the library's symbols) dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/apt/usr/bin/apt-get was not linked against libutil.so.1 (it uses none of the library's symbols)
* build the en manpages in subdirectory doc/enDavid Kalnischkies2013-06-092-2/+9
| | | | | Building manpages becames more consistent this way and it is simpler to ignore build artefacts, too.
* merged trunkMichael Vogt2013-06-061-0/+6
|\
| * Merge branch 'debian/sid' of https://github.com/ion1/apt into debian/sidMichael Vogt2013-06-061-0/+5
| |\
| | * cmdline/apt-key: Accept nonexistent --keyring file with adv as wellJohan Kiviniemi2013-05-221-1/+3
| | |
| | * cmdline/apt-key: Create new keyrings with mode 0644 instead of 0600Johan Kiviniemi2013-05-221-0/+3
| | |
* | | prepare releaseMichael Vogt2013-06-061-2/+2
|/ /
* | Fix double free (closes: #711045)Michael Vogt2013-06-061-1/+5
| | | | | | | | | | | | | | * Fix double free (closes: #711045) * Fix crash when the "mirror" method does not find any entry (closes: #699303)
* | fix double free (closes: #711045)Michael Vogt2013-06-061-0/+3
|/
* * buildlib/apti18n.h.in:Michael Vogt2013-05-161-0/+4
| | | | - fix build failure when building without NLS (closes: #671587)
* debian/gbp.conf: add debian-tag key to ensure git-dch worksMichael Vogt2013-05-161-0/+1
|
* Update changelog to include Vcs-* changesJulian Andres Klode2013-05-161-0/+3
|
* French translation : typo fix. Closes: #677272Christian PERRIER2013-05-161-0/+7
|
* Update Vcs fieldsGuillem Jover2013-05-161-2/+2
| | | | | | Use the canonical URLs. Rename Vcs-Bzr to Vcs-Git and use the more efficient git protocol instead of http. Point Vcs-Browser to the gitweb interface.
* add export-dir and debian-branchMichael Vogt2013-05-161-0/+2
|
* prepare uploadMichael Vogt2013-05-161-3/+5
|
* merged previous bzr commitMichael Vogt2013-05-161-2/+2
|\
| * releasing version 0.9.8Michael Vogt2013-05-081-2/+2
| |
* | moved to git, updated gbp.conf to match the bzr versionMichael Vogt2013-05-162-2/+5
| |
* | non-inline RunGPGV methods to restore ABI compatibility with previous ↵David Kalnischkies2013-05-161-0/+9
| | | | | | | | | | | | | | | | versions to fix partial upgrades (Closes: #707771) The rename in 0.9.7.9~exp2 moved the method body to the class definition which means it became inline, which isn't ABI compatibile. The reverse of moving inline to non-inline is safe though.
* | add .gitignore and gbp.confMichael Vogt2013-05-161-0/+3
|/
* merged patch from Daniel Hartwig to fix URI and proxy releated issuesMichael Vogt2013-05-081-0/+17
|
* merged from the debian-wheezy branchMichael Vogt2013-05-082-4/+14
|\
| * * apt-pkg/algorithms.cc:Michael Vogt2013-05-081-1/+7
| | | | | | | | | | | | - Do not propagate negative scores from rdepends. Propagating the absolute value of a negative score may boost obsolete packages and keep them installed instead of installing their successors. (Closes: #699759)
| * properly handle if-modfied-since with libcurl/https Michael Vogt2013-05-082-1/+9
| | | | | | | | (closes: #705648)
* | Fix English spelling error in a message ('A error'). Unfuzzybubulle@debian.org2013-04-101-0/+4
| | | | | | translations. Closes: #705087
* | Changelog entry for translation fixesbubulle@debian.org2013-04-091-0/+6
| |
* | releasing version 0.9.7.9~exp3Michael Vogt2013-04-081-2/+2
| |
* | merged bundle from davidMichael Vogt2013-04-081-0/+20
|\ \
| * | share version strings between same versions (of different architectures)David Kalnischkies2013-04-031-0/+2
| | | | | | | | | to save some space and allow quick comparisions later on
| * | * apt-pkg/cacheiterators.h:David Kalnischkies2013-04-031-0/+2
| | | | | | | | | - provide DepIterator::IsSatisfied as a nicer shorthand for DepCheck
| * | - sort group and package names in the hashtable on insertDavid Kalnischkies2013-04-031-0/+3
| | | | | | | | | | | | * apt-pkg/pkgcache.cc: - assume sorted hashtable entries for groups/packages
| * | equal comparisions are used mostly in same-source relations,David Kalnischkies2013-04-011-0/+2
| | | | | | | | | so use this to try to reuse some version strings