summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2008-11-14dpkg: untangle onerr_abort from too many errors conditionGuillem Jover4-6/+12
Give the “too many errors” while processing packages or archives condition a different flag than the more serious onerr_abort condition from unrecoverable fatal errors. This is needed so that we can do a proper abort and stop dpkg completely in case of an actual fatal error, without affecting the normal loop processing error handling.
2008-10-17dpkg-query: stop needlessly using functionality from error.cGuillem Jover4-12/+7
The file was being pulled only because dpkg-query was using nerrs.
2008-09-14dpkg: Remove left over debug printf in --command-fd codeGuillem Jover1-1/+0
2008-09-14libdpkg: Move loadcfgfile from standard_startup to its callersGuillem Jover3-3/+4
2008-09-14libdpkg: Move myopt from standard_startup to each program mainGuillem Jover4-3/+10
2008-09-14libdpkg: Do not pass any argument to standard_shutdownGuillem Jover3-3/+3
2008-09-14libdpkg: Move stdlib.h inclusion to its direct includersGuillem Jover4-0/+4
2008-09-14libcompat: Add new compat.h headerGuillem Jover19-0/+19
2008-09-14Move locale.h inclusion and locale setup to each program mainGuillem Jover3-0/+24
2008-09-14libdpkg: Move gettext related definitions to a new dpkg-i18n.hGuillem Jover18-0/+36
2008-08-26Merge branch 'lenny' (through tag '1.14.21')Guillem Jover3-9/+14
Conflicts: ChangeLog configure.ac debian/changelog lib/fields.c man/ChangeLog man/dpkg-buildpackage.1 man/po/de.po man/po/dpkg-man.pot man/po/es.po man/po/fr.po man/po/hu.po man/po/ja.po man/po/pl.po man/po/pt_BR.po man/po/ru.po man/po/sv.po po/ChangeLog po/ja.po po/ko.po po/ro.po src/main.c
2008-08-18Remove wrong or redundant information from comment headersGuillem Jover2-17/+0
2008-08-16Close --status-fd file descriptors on execGuillem Jover1-0/+2
This avoids those being inherited by the childs. Closes: #471488, #487684
2008-08-15dpkg: Do not assert when configure or remove produced too many errorsIan Jackson1-1/+2
Closes: #483655
2008-08-15Fix --no-act in triggers related codeGuillem Jover2-8/+12
Closes: #495097
2008-08-15Revert "Handle correctly packages in triggers-awaited state during recovery"Guillem Jover1-15/+4
This reverts commit 4c57b1459ee88b06947d6e1afc2a93a67d2c2ed9.
2008-08-04dpkg: Use blankpackageperfile instead of manually blanking the membersGuillem Jover2-17/+3
2008-08-04Unify usage of FIXME in commentsGuillem Jover3-4/+4
2008-08-04Assign directly to l_r instead of a temporary variableGuillem Jover1-3/+2
2008-07-26Move duplicate limiteddescription functions to src/pkg-show.cGuillem Jover5-26/+52
2008-07-22Move duplicate pkglistqsortcmp functions to src/pkg-list.cGuillem Jover4-13/+40
2008-07-22Move struct pkg_deconf_list declaration to archives.hGuillem Jover2-6/+6
2008-07-22Rename struct packageinlist to pkg_deconf_listGuillem Jover4-7/+7
2008-07-22Give a proper type and name to the xinfo member in packageinlistGuillem Jover3-3/+3
This struct is being used privately by the deconfiguring code, so we can give a proper type and name to the member.
2008-07-22Change some variables from struct packageinlist to pkginqueueGuillem Jover3-5/+5
Those are not using the xinfo member, which is the only difference between the types.
2008-07-22dpkg-query: Remove unused variable ignoredependssGuillem Jover1-1/+0
2008-07-10Use new min and max macros instead of hardcoded testsGuillem Jover4-4/+7
2008-07-10Do not leave new conffile as .dpkg-new when it has been divertedGuillem Jover1-7/+16
Also properly activate the file trigger for the diverted conffile. Based on a patch by Timothy G Abbott. Closes: #58735, #476899
2008-07-10dpkg: Move trig_file_activate call from namenodetouse to its callersGuillem Jover5-10/+25
2008-07-05dpkg: Do not mark debug message for translationGuillem Jover1-2/+1
2008-07-04Handle correctly packages in triggers-awaited state during recoveryRaphael Hertzog1-4/+15
* src/packages.c (process_queue): packages which are in triggers-awaited state without any corresponding triggers-pending can be configured and can thus satisfy dependencies of other packages. The core of the problem was that if dpkg is interrupted, you can have the following situation: Package: a Triggers-Awaited: b Package: b Status: ... installed This is as expected but I obviously hadn't properly tested the recovery, which is to do a no-op trigger processing step for b. The machinery in packages.c would be unimpressed by b's appearance in progress_bytrigproc.
2008-07-02Use NULL instead of 0Guillem Jover3-21/+23
2008-07-02Remove wrong comment not matching the codeGuillem Jover1-1/+1
2008-07-02Make tarfile_skip_one_forward staticGuillem Jover1-1/+1
2008-07-01dpkg: Use the debug function instead of reimplementing its logicGuillem Jover2-6/+19
2008-07-01dpkg: Properly lstat the correct file when using --root on upgradesEgmont Koblinger1-1/+10
Closes: #281057
2008-07-01dpkg: Do not allocate memory when lstat fails while upgradingGuillem Jover1-5/+11
2008-06-30Switch to use UTF-8 copyright symbol and add missing onesGuillem Jover20-24/+24
Some 'Copyright <year>' entries didn't have a copyright symbol. Add it and switch the rest from '(C)' to '©', but we don't do this on program output which for now should remain pure ascii.
2008-06-30libdpkg: Constify strings members for package db structsGuillem Jover1-2/+4
2008-06-28Move "skip a file forward" into its own functionTollef Fog Heen1-14/+29
2008-06-28libdpkg: Move skip_slash_dotslash from parsehelp.c to path.cGuillem Jover1-0/+1
And from dpkg-db.h dpkg-priv.h.
2008-06-28dpkg-query: Remove trailing newlines from badusage outputGuillem Jover1-2/+1
2008-06-28Fix localized stringsGuillem Jover2-8/+7
2008-06-19Add a few more comment around obscure bits of trigger handling codeColin Watson1-0/+3
2008-06-18Merge lenny branch (through the tag '1.14.20')Raphael Hertzog1-0/+1
Conflicts: ChangeLog configure.ac debian/changelog man/ChangeLog man/dpkg.1 man/po/de.po
2008-06-09dpkg-query: Use VARBUF_INIT to initialize path instead of vbGuillem Jover1-2/+2
Thinko introduced in eb483c17ebb9a47c8b99b4319e682ab685213090.
2008-06-04Close --status-fd file descriptors on execGuillem Jover1-0/+2
This avoids those being inherited by the childs. Closes: #471488
2008-06-04Replace realloc plus error checking usage with m_reallocGuillem Jover1-1/+1
2008-06-04Use new VARBUF_INIT macro instead of varbufinit to initialize variablesGuillem Jover8-28/+13
2008-06-04dpkg: Fix memory leaks if archivefiles is called more than onceGuillem Jover1-3/+5
Use varbufreset instead of varbufinit, as the variables are global.