summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-09-30Switch to use stdbool were appropriateGuillem Jover8-107/+164
2009-09-30dpkg-query: Do not use C99 style for-loop variable declarationsGuillem Jover1-1/+3
2009-09-30Remove helponly and versiononly functionsGuillem Jover3-18/+30
Directly use printversion and usage functions, make them exit and change their prototypes to fit cmdinfos. This solves the ugly situation of expecting helponly and versiononly callers to respectively define printversion and usage themselves.
2009-09-30dpkg-trigger: Move functions and variables aroundGuillem Jover1-24/+25
Place cmdinfos just before main, and the variables and noawait function definitions after usage.
2009-09-30dpkg-trigger: On --help print the default admindirGuillem Jover1-1/+1
Instead of the one passed on the command line.
2009-09-30Remove unused variablesGuillem Jover2-3/+0
2009-09-25Do not print redundant dpkg prefix and new line on undefined PATHGuillem Jover1-1/+2
2009-09-25Use warning() instead of fprintf() in checkpath()Guillem Jover1-1/+1
2009-09-25Clean up coding style for half compliant filesGuillem Jover1-219/+257
Fix spacing, indentation and alignment. Do not use backticks, on comments use UTF-8 pretty quotes, on strings use single or double quotes, but do not change strings marked for translation if no other change was needed. Fix placement of braces and boolean operators. Fix formatting of comments.
2009-09-24libdpkg: Do not allocate memory for buffer md5 hash resultGuillem Jover1-11/+12
Expect the caller to pass a suitable buffer to store the result.
2009-09-20Split deferred_configure conffile handling into its own functionGuillem Jover1-139/+148
2009-09-19Fix small leak when parsing ‘--ignore-depends’ option valuesGuillem Jover1-0/+2
2009-09-19dpkg-query: Remove unused f_ and fc_ variablesGuillem Jover1-7/+0
2009-09-15Move LISTFILE macro from libdpkg to dpkgGuillem Jover1-0/+2
This is a private macro, internal to the file database handling code, currently in dpkg only.
2009-09-15Switch ad-hoc code to use struct pkg_list data typeGuillem Jover5-26/+21
Free the trig_awaited_pend_head list now that it is a pkg_list and it switched from being allocated with m_malloc instead of nfmalloc.
2009-09-15Move pkg-array to libdpkgGuillem Jover5-120/+2
2009-09-15dpkg: Update list of binaries to check on PATHGuillem Jover1-2/+7
Remove install-info which is now a wrapper and will disappear soonish. Add programs used by dpkg itself: sh, rm, find, tar and dpkg-deb.
2009-09-15dpkg: Use secure_unlink instead of ad-hoc codeGuillem Jover1-17/+2
2009-09-15Improve secure_unlink comment and move it outside the functionGuillem Jover1-3/+9
2009-09-15Rename chmodsafe_unlink functions to secure_unlinkGuillem Jover3-7/+7
2009-09-15Only use errno for error reason when securely removing a fileGuillem Jover3-27/+21
There's no point in setting an error string, it complicates the code needlessly and the reason is in errno anyway.
2009-09-15Use character arrays instead of pointers for constant stringsGuillem Jover1-1/+1
2009-09-08dpkg: Remove obsolete conffiles on purgeGuillem Jover1-1/+0
Closes: #454628
2009-09-06dpkg: Use ohshit on bad version syntax in --compare-versionsGuillem Jover1-10/+4
2009-09-06dpkg-query: Add installed package control path query supportGuillem Jover2-0/+121
This new command is to be used in special cirmcumstances when the maintainer scripts, or external programs need to know the paths to an installed package control files, without needing to hardcode or assume any file system layout for the dpkg database.
2009-09-06Unify and mark strings for translationGuillem Jover2-3/+3
2009-09-06Use m_output instead of checking printing functions return codeGuillem Jover4-67/+69
Cleans up the code. And as a side effect, we get rid of bogus checks for EOF, which should have been checking for negative return values.
2009-09-06Use m_output instead of fflush, ferror and werrGuillem Jover5-22/+25
2009-09-06dpkg: Check stdout for errors instead of stderr in audit()Guillem Jover1-1/+3
2009-09-06dpkg: Remove unused act_compareversionsGuillem Jover1-1/+0
2009-09-06dpkg: Sort and group ‘enum action’ valuesGuillem Jover1-10/+42
2009-09-06libdpkg: Move buffer I/O declarations to buffer.hGuillem Jover5-0/+5
2009-09-06dpkg: Add new invoke hooks supportGuillem Jover2-0/+71
Call pre-invoke and post-invoke hooks before and after unpack, configure, install, triggers-only, remove and purge actions. Set the DPKG_HOOK_ACTION environment variable to the current dpkg action.
2009-08-22Set DPKG_MAINTSCRIPT_ARCH env var with the .deb architectureGuillem Jover1-0/+1
This allows maintainer scripts to know which architecture the package got built for.
2009-08-22Pass ‘struct pkginfoperfile’ from maint script functions to do_scriptGuillem Jover1-7/+9
This allows us to retrieve package information from either the installed package or the one being installed from the maintainer script invoking functions.
2009-08-22Pass ‘struct pkginfo’ instead of pkg name to maint script functionsGuillem Jover4-16/+23
This allows us to retrieve package information from the maintainer script invoking functions.
2009-08-21Add support for config.d style directory fragment loadingGuillem Jover1-0/+3
Open the system config.d directory before the system configuration file, /etc/dpkg/dpkg.cfg.d for dpkg and /etc/dpkg/dselect.cfg.d for dselect, and load fragments with filenames matching the run-parts standard Debian constraints (^[a-zA-Z0-9_-]+$). This will allow external programs to drop configuration fragments on those directories.
2009-08-16Cast field width function arguments to intGuillem Jover1-1/+2
2009-08-16Set action_todo as volatile to avoid possible clobbering on longjmpGuillem Jover1-1/+1
2009-08-15Use AM_CPPFLAGS instead of deprecated INCLUDES in Makefile.am filesGuillem Jover1-1/+1
2009-08-15dpkg: change behaviour of --merge-availIan Jackson1-1/+2
With this change, dpkg --merge-avail does not update a package's information if the version provided is older than the one already listed in the available file.
2009-08-13Remove double slash in database path creationGuillem Jover1-1/+1
Visible to the user in some error conditions.
2009-08-09dpkg: On file conflicts print the version of the conflicted packageGuillem Jover1-5/+11
Makes it easier to report bugs, without needed to additionally check the installed version of the conflicted package. Closes: #540019
2009-07-15libdpkg: Move subproc related declarations to subproc.hGuillem Jover2-0/+2
2009-07-15libdpkg: Split dpkg-priv.h into smaller piecesGuillem Jover3-3/+4
Make the dependencies on other modules explicit, and avoid clutter by not including unneeded stuff.
2009-07-15Disable default automake preprocessor include pathsGuillem Jover23-63/+63
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 Jover20-20/+20
2009-07-15Remove unused dpkg-priv.h header includesGuillem Jover4-4/+0
2009-07-15libdpkg: Move C language definition macros to macros.hGuillem Jover3-3/+3
2009-07-15libdpkg: Rename and namespace compiler attributesGuillem Jover2-4/+4
Prefix them all with DPKG_ATTR_, and use shorter but still meaningful names.