summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* * apt-pkg/deb/dpkgpm.cc:Michael Vogt2012-01-191-1/+5
| | | - fix segfault on pkg removal
* if multi-arch is detected ensure that pkg:all is reported as pkg:allDavid Kalnischkies2012-01-191-1/+4
| | | | Versions with arch:all are added to the package with the native arch, so we can't rely on Pkg.Arch() for the architecture
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2012-01-191-0/+5
| | | - redirect out/input of dpkg --assert-multi-arch to /dev/null
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2012-01-131-21/+52
| | | | - check if dpkg supports multiarch with --assert-multi-arch and if it does be always explicit about the architecture
* merge with my debian-sid branchDavid Kalnischkies2011-10-301-1/+0
|\
| * * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2011-09-201-72/+78
| | | | | | | | | | | | | | | | | | | | | | - use std::vector instead of fixed size arrays to store args and multiarch-packagename strings - load the dpkg base arguments only one time and reuse them later * cmdline/apt-get.cc: - follow Provides in the evaluation of saving candidates, too, for statisfying garbage package dependencies (Closes: #640590) * apt-pkg/algorithms.cc: - if a package is garbage, don't try to save it with FixByInstall
* | load the dpkg base arguments only one time and reuse them laterDavid Kalnischkies2011-09-201-22/+28
| |
* | * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2011-09-201-61/+61
| | | | | | | | - use std::vector instead of fixed size arrays to store args and multiarch-packagename strings
* | enable APT in unpack/configure ordering to handle loops as wellDavid Kalnischkies2011-09-141-4/+21
|\ \ | | | | | | | | | | | | as tight dependencies between immediate packages better enabling also the possibility to mark all packages as immediate (at least Closes: #353290, #540227, #559733, #621836, #639290)
| * | Inproved the SIGINT stop in the dpkgpm, not perfect yet but it should work ↵Christopher Baines2011-08-021-3/+9
| | | | | | | | | | | | when using Immediate-Configure-All.
| * | Only stop on SigInt if the system state is right (still needs more testing).Christopher Baines2011-08-011-2/+2
| | | | | | | | | | | | | | | More inprovements to the package manager to prevent packages from being configured twice.
| * | Only allow interupts when using, Immediate-Configure-All.Christopher Baines2011-07-311-3/+5
| | | | | | | | | | | | | | | | | | TODO for dpkgpm: Useful messages about the interupt, what was done to what packages and what was not done to what packages. Only fail when the system is in a clean state, at the moment it will fail either a configure or install run.
| * | SmartConfigure and SmartUnPack have got smarter! The full descriptions of ↵Christopher Baines2011-07-271-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | what they now do is in the apt-pkg/packagemanager.cc file. The short version is that they will both put the system in a state where there operation can be achived, this involves calling themselves and each other recursively. Because SmartConfigure can now configure a package and all its dependancies itself, there is no current need for DepAdd (at least in packagemanager.cc), SmartConfigure also performs the function of the short lived VerifyConfigure as it checks through all the dependancies before performing configuration. Another change is to use the ConfigureAll method in OrderInstall to clean up any packages left unconfigured during ImmConfigureAll. This is necessary to inprove the safety of ImmConfiguration and because of the new SIGINT functionality of dpkgpm.cc relies on no packages being left unconfigured between pairs of dpkg calls. While writing this commit log, I have realised that the SIGINT stuff is a prototype and not ready to be used yet as I have only tested it twice.
* | | merge with debian/experimentalDavid Kalnischkies2011-09-131-10/+10
|\ \ \
| * \ \ merged from the debian-sid branchMichael Vogt2011-08-151-10/+10
| |\ \ \ | | | |/ | | |/|
| | * | cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-111-10/+10
| | |/ | | | | | | | | | | | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
* | / reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-1/+2
|/ /
* | merge lp:~mvo/apt/abi-breakMichael Vogt2011-06-291-46/+62
|\ \ | |/ |/|
| * * [ABI-Break] Implement EDSP in libapt-pkg so that all front-ends whichMichael Vogt2011-06-081-46/+62
| |\ | | | | | | | | | | | | * [ABI-Break] merge lp:~mvo/apt/sha512-template to add support for sha512 * [ABI-Break] merge lp:~mvo/apt/dpointer to support easier extending without breaking the ABI
| | * apt-pkg/deb/dpkgpm.{cc,h}: convert to use dpointersMichael Vogt2011-01-271-46/+62
| | |
* | | merged from lp:~mvo/apt/mvoMichael Vogt2011-06-281-1/+9
|\ \ \
| * | | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2011-06-271-1/+9
| |/ / | | | | | | - set permissions of term.log to root.adm and 644 (LP: #404724)
* | | log reinstall commands in history.logDavid Kalnischkies2011-05-231-18/+29
| | |
* | | remove invalid pkgcache.bin and rebuild it if possibleDavid Kalnischkies2011-05-191-1/+18
|/ / | | | | | | | | | | | | The next invocation of APT tried to load an outdated big (and possible io-cold) file just to end up rebuilding it (possibly only as non-root in memory again and again), so we remove it here and if we have a srcpkgcache we are going to rebuild, too.
* | * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2011-04-161-2/+3
| | | | | | - replace obsolete usleep with nanosleep
* | * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2011-03-161-2/+6
| | | | | | - skip --configure if all packages disappeared
* | merged the lp:~mvo/apt/mvo branchMichael Vogt2011-03-101-0/+9
|\ \
| * | * apt-pkg/contrib/fileutl.cc, apt-pkg/deb/dpkgpm.cc:Michael Vogt2011-03-031-0/+9
| | | | | | | | | - honor Dpkg::Chroot-Directory in the RunScripts*() methods
* | | use FullName and strdup instead of handmade and new[]David Kalnischkies2011-03-071-5/+3
| | |
* | | * apt-pkg/deb/dpkgpm.cc:Steve Langasek2011-03-071-2/+19
|/ / | | | | | | | | - make sure that for multiarch packages, we are passing the full qualified package name to dpkg for removals. (Closes: #614298)
* | merge 'after squeeze release'-stuffDavid Kalnischkies2011-02-031-7/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ David Kalnischkies ] * apt-pkg/depcache.cc: - add SetCandidateRelease() to set a candidate version and the candidates of dependencies if needed to a specified release (Closes: #572709) * cmdline/apt-get.cc: - if --print-uris is used don't setup downloader as we don't need progress, lock nor the directories it would create otherwise - show dependencies of essential packages which are going to remove only if they cause the remove of this essential (Closes: #601961) - keep not installed garbage packages uninstalled instead of showing in the autoremove section and installing those (Closes: #604222) - change pkg/release behavior to use the new SetCandidateRelease so installing packages from experimental or backports is easier - really do not show packages in the extra section if they were requested on the commandline, e.g. with a modifier (Closes: #184730) * debian/control: - add Vcs-Browser now that loggerhead works again (Closes: #511168) - depend on debhelper 7 to raise compat level - depend on dpkg-dev (>= 1.15.8) to have c++ symbol mangling * apt-pkg/contrib/fileutl.cc: - add a RealFileExists method and check that your configuration files are real files to avoid endless loops if not (Closes: #604401) - ignore non-regular files in GetListOfFilesInDir (Closes: #594694) * apt-pkg/contrib/weakptr.h: - include stddefs.h to fix compile error (undefined NULL) with gcc-4.6 * methods/https.cc: - fix CURLOPT_SSL_VERIFYHOST by really passing 2 to it if enabled * deb/dpkgpm.cc: - fix popen/fclose mismatch reported by cppcheck. Thanks to Petter Reinholdtsen for report and patch! (Closes: #607803) * doc/apt.conf.5.xml: - fix multipl{y,e} spelling error reported by Jakub Wilk (Closes: #607636) * apt-inst/contrib/extracttar.cc: - let apt-utils work with encoded tar headers if uid/gid are large. Thanks to Nobuhiro Hayashi for the patch! (Closes: #330162) * apt-pkg/cacheiterator.h: - do not segfault if cache is not build (Closes: #254770) * doc/apt-get.8.xml: - remove duplicated mentioning of --install-recommends * doc/sources.list.5.xml: - remove obsolete references to non-us (Closes: #594495) * debian/rules: - use -- instead of deprecated -u for dh_gencontrol - remove shlibs.local creation and usage - show differences in the symbol files, but never fail * pre-build.sh: - remove as it is not needed for a working 'bzr bd' * debian/{apt,apt-utils}.symbols: - ship experimental unmangled c++ symbol files * methods/rred.cc: - operate optional on gzip compressed pdiffs * apt-pkg/acquire-item.cc: - don't uncompress downloaded pdiff files before feeding it to rred - try downloading clearsigned InRelease before trying Release.gpg - change the internal handling of Extensions in pkgAcqIndex - add a special uncompressed compression type to prefer those files - download and use i18n/Index to choose which Translations to download * cmdline/apt-key: - don't set trustdb-name as non-root so 'list' and 'finger' can be used without being root (Closes: #393005, #592107) * apt-pkg/deb/deblistparser.cc: - rewrite LoadReleaseInfo to cope with clearsigned Releasefiles * ftparchive/writer.cc: - add config option to search for more patterns in release command - include Index files by default in the Release file * methods/{gzip,bzip}.cc: - print a good error message if FileSize() is zero * apt-pkg/aptconfiguration.cc: - remove the inbuilt Translation files whitelist
| * | * deb/dpkgpm.cc:Petter Reinholdtsen2011-01-121-2/+2
| | | | | | | | | | | | | | | - fix popen/fclose mismatch reported by cppcheck. Thanks to Petter Reinholdtsen for report and patch! (Closes: #607803)
| * | remove the unused Die boolean - error reporting is done by ExecWaitDavid Kalnischkies2011-01-121-5/+1
| |/
* / apt-pkg/deb/dpkgpm.cc: fix format string warningMichael Vogt2011-01-271-1/+1
|/
* * apt-pkg/deb/dpkgpm.cc:Michael Vogt2010-10-281-0/+1
| | | | - ensure that history.log gets closed to avoid leaking a FD (closes: #601649)
* rename the newly public CheckDirectory method to CreateAPTDirectoryIfNeededDavid Kalnischkies2010-09-061-1/+1
| | | | to give a better indication what this method will do if called.
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2010-09-021-1/+2
| | | | | | | - create Dir::Log if needed to support /var/log as tmpfs or similar, inspired by Thomas Bechtold, thanks! (Closes: #523919, LP: #220239) Easily done by moving a private method from pkgAcquire into the public area of fileutl.cc to be able to use it also in here
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2010-08-201-2/+4
| | | | | - use the InstVer instead of the CurrentVer for the autobit transfer Add also a small testcase to check the handling automatical
* Add to history whether a change was automatic or not.Julian Andres Klode2010-07-211-1/+6
|
* * apt-pkg/deb/dpkgpm.cc:Julian Andres Klode2010-07-211-5/+5
| | | - Write architecture information to history file.
* * apt-pkg/deb/dpkgpm.cc:Michael Vogt2010-07-091-1/+1
|\ | | | | - make the apt/term.log output unbuffered (thanks to Matt Zimmerman)
| * * apt-pkg/deb/dpkgpm.cc:Michael Vogt2010-07-071-1/+2
| | | | | | - make the apt/term.log output unbuffered (thanks to Matt Zimmerman)
* | merged from lp:~donkult/apt/sidMichael Vogt2010-06-091-10/+70
|\ \
| * | forward manual-installed bit on package disappearanceDavid Kalnischkies2010-05-271-1/+46
| | |
| * | * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2010-05-271-9/+24
| | | | | | | | | - write Disappeared also to the history.log
* | | merge lp:~mvo/apt/ubuntu-mirror-method-improvementsMichael Vogt2010-06-091-0/+1
|\ \ \
| * | | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2010-06-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - add missing include * methods/mirror.{cc,h}: - add SelectNextMirror() and InitMirrors() functions - read all mirrors into the AllMirrors vector
* | | | * merge the remaining Ubuntu change:Michael Vogt2010-06-091-2/+196
|\| | | | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - on gpg verification failure warn and restore the last known good state - on failure display the IP of the server (useful for servers that use round robin DNS) - support Original-Maintainer in RewritePackageOrder - enable cdrom autodetection via libudev by default - show messsage about Vcs in use when apt-get source is run for packages maintained in a Vcs - better support transitional packages with mark auto-installed. when the transitional package is in "oldlibs" the new package is not marked auto installed (same is true for section metapackages) - provide new "deb mirror://archive.foo/mirrors.list sid main" method expects a list of mirrors (generated on the server e.g. via geoip) and will use that, including cycle on failure - write apport crash file on package failure (disabled by default on debian until apport is available) - support mirror failure reporting (disabled by default on debian)
| * | cherry pick -r 1954..1955 lp:~donkult/apt/sidMichael Vogt2010-03-261-7/+9
| | |
| * | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2010-03-121-0/+1
| |\| | | | | | | | | | | | | | | | - fix backgrounding when dpkg runs (closes: #486222) * cmdline/apt-mark: - show error on incorrect aguments (LP: #517917), thanks to Torsten Spindler