summaryrefslogtreecommitdiff
path: root/src/errors.c
AgeCommit message (Collapse)AuthorFilesLines
2018-10-08dpkg: Fix --force-not-rootGuillem Jover1-0/+8
Ignore EPERM for chown and chmod based syscalls. And give a more meaningful error message on chroot(). Closes: #614126
2016-11-11dpkg: Fix use after free issue on error summaryGuillem Jover1-2/+3
We are releasing the dpkg database now after running the commands, which means that the postponed error reporting summary was trying to print messages that had already been freed from the database memory pool. Duplicate the passed strings so that we are impervious to the database life-cycle. Regression introduced in commit 3404fd24ef8020b4d6dc17adb82d7e6c035d90dc. Closes: #843874
2015-10-18Update Ian Jackson's email addressGuillem Jover1-1/+1
2015-01-26Remove unused <ctype.h> includesGuillem Jover1-1/+0
2014-06-02libdpkg: Uppercase and namespace pkgwant enum valuesGuillem Jover1-1/+2
2013-12-07Use https:// URLs instead of http:// when possibleGuillem Jover1-1/+1
2013-12-07dpkg: Use warningv() to print message when overriding with --force optionGuillem Jover1-3/+1
2013-11-08dpkg: Distinguish error reports between archives and packagesGuillem Jover1-1/+14
2013-11-08dpkg: Refactor enqueue_error_report() out from print_error_perpackage()Guillem Jover1-7/+15
2013-11-08libdpkg: Change error printer argument from const char * to const void *Guillem Jover1-1/+4
This will allow passing any other data to the printer callback beside a string.
2012-06-30Switch to new notice() output functionGuillem Jover1-8/+6
This switches all ad-hoc stderr printing for error notices to the notice() function.
2012-02-01Change debug, progress and error output to use package specifiersGuillem Jover1-2/+2
Replace pkg->set->name with varbuf_add_pkgbin_name(), pkgbin_name() or pkg_name(). This only changes informative output, so no behaviour change should result from this. Based-on-patch-by: Raphaël Hertzog <hertzog@debian.org> Patch-sponsored-by: Linaro Limited Signed-off-by: Guillem Jover <guillem@debian.org>
2011-10-27Switch from pkginfo->name to pkginfo->set->nameGuillem Jover1-2/+2
Remove now unused struct pkginfo name member.
2011-07-07libdpkg: Rename myopt module to optionsGuillem Jover1-1/+1
2011-07-07Use new dpkg_set_progname and dpkg_get_progname instead of thisnameGuillem Jover1-3/+3
The current implementation demanded libdpkg users to define thisname themselves, which is not really a nice interface to offer to programs. Closes: #631757
2011-04-01dpkg: Pass default return value to reportbroken_retexitstatus()Guillem Jover1-2/+4
This will allow to pass arbitrary values from the command actions when there's not been any reported error.
2010-11-19Cleanup white spacesGuillem Jover1-2/+2
Remove trailing spaces. Remove blank lines not separating different code blocks. Remove blank lines at the end of the file.
2010-11-19Use thisname variable instead of hard-coded 'dpkg' stringGuillem Jover1-3/+5
This corrects the current program name printed by other tools.
2010-07-16Fix file names in comment headerGuillem Jover1-1/+1
2010-07-16Switch variables from int to bool where appropriateGuillem Jover1-2/+2
2010-06-07Unify naming of va_list variables to args or args_copyGuillem Jover1-5/+6
2010-05-19Use bool instead of int wherever appropriateGuillem Jover1-1/+1
2010-01-28Do not include unneeded <signal.h>Guillem Jover1-1/+0
2009-11-08Unify text in license headersGuillem Jover1-5/+5
Add a missing “of the License” after “version 2”. Move “but” and “GNU” at the end of line to the next line. This matches more closely the paragraph found in the license text for the GPL version 2.
2009-11-08Replace FSF address by pointing to the gnu.org URLGuillem Jover1-3/+2
Use the <http://www.gnu.org/licenses/> URL, instead of in most cases the outdated FSF address, which is way more stable, as the latter has changed several times in the past.
2009-10-26Sort order of header includesGuillem Jover1-9/+10
Place first <config.h> and <compat.h>, then all <sys/*.h> sorted by complexity, followed by the rest of the system headers, then <dpkg/*.h> and finally the local "*.h" ones. Move <dpkg/i18n.h> inclusion into libdpkg inclusion block, as the <gettext.h> compatibility header already takes care of including <locale.h> before <libintl.h> on environments were its probamatic. Removed duplicated inclusions.
2009-09-30Switch to use stdbool were appropriateGuillem Jover1-4/+7
2009-07-15Disable default automake preprocessor include pathsGuillem Jover1-3/+3
Tell automake not to add “-I.” to the preprocessor flags, to avoid file collisions with system headers. Re-add the path where config.h is located. Namespace and use bracketed file inclusions for libdpkg headers, and use quoted inclusions for program headers.
2009-07-15libdpkg: Rename dpkg-i18n.h to i18n.hGuillem Jover1-1/+1
2009-06-18Fix english mistake (“as you request” → “as you requested”)David Stansby1-1/+1
2008-12-05Use the warning function instead of hand-coded print callsGuillem Jover1-1/+2
2008-11-18Merge branch 'lenny' (through tag '1.14.23')Guillem Jover1-4/+6
Conflicts: ChangeLog configure.ac debian/changelog man/ChangeLog man/po/de.po man/po/es.po man/po/hu.po man/po/pt_BR.po po/ChangeLog po/es.po po/ja.po po/ko.po po/pt.po po/ro.po src/errors.c
2008-11-14dpkg: untangle onerr_abort from too many errors conditionGuillem Jover1-4/+5
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 Jover1-1/+1
The file was being pulled only because dpkg-query was using nerrs.
2008-09-14libcompat: Add new compat.h headerGuillem Jover1-0/+1
2008-09-14libdpkg: Move gettext related definitions to a new dpkg-i18n.hGuillem Jover1-0/+2
2008-06-30Switch to use UTF-8 copyright symbol and add missing onesGuillem Jover1-1/+1
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-03-25Refactor status-fd duplicate output code into a new functionGuillem Jover1-17/+1
Based on a patch by Ian Jackson <ian@davenant.greenend.org.uk>.
2008-01-16Use NULL instead of 0Guillem Jover1-2/+2
2007-11-29Move extern declarations to header files and stop defining them as externGuillem Jover1-2/+0
2005-03-11dpkg (1.13.1.0.1) experimental; urgency=lowScott James Remnant1-0/+132
* Bin-MU; recompile against Debian unstable, to make dselect actually installable. -- Scott James Remnant <scott@netsplit.com> Fri, 11 Mar 2005 09:00:14 +0000