Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-09-30 | Switch to use stdbool were appropriate | Guillem Jover | 8 | -107/+164 | |
2009-09-30 | dpkg-query: Do not use C99 style for-loop variable declarations | Guillem Jover | 1 | -1/+3 | |
2009-09-30 | Remove helponly and versiononly functions | Guillem Jover | 3 | -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-30 | dpkg-trigger: Move functions and variables around | Guillem Jover | 1 | -24/+25 | |
Place cmdinfos just before main, and the variables and noawait function definitions after usage. | |||||
2009-09-30 | dpkg-trigger: On --help print the default admindir | Guillem Jover | 1 | -1/+1 | |
Instead of the one passed on the command line. | |||||
2009-09-30 | Remove unused variables | Guillem Jover | 2 | -3/+0 | |
2009-09-25 | Do not print redundant dpkg prefix and new line on undefined PATH | Guillem Jover | 1 | -1/+2 | |
2009-09-25 | Use warning() instead of fprintf() in checkpath() | Guillem Jover | 1 | -1/+1 | |
2009-09-25 | Clean up coding style for half compliant files | Guillem Jover | 1 | -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-24 | libdpkg: Do not allocate memory for buffer md5 hash result | Guillem Jover | 1 | -11/+12 | |
Expect the caller to pass a suitable buffer to store the result. | |||||
2009-09-20 | Split deferred_configure conffile handling into its own function | Guillem Jover | 1 | -139/+148 | |
2009-09-19 | Fix small leak when parsing ‘--ignore-depends’ option values | Guillem Jover | 1 | -0/+2 | |
2009-09-19 | dpkg-query: Remove unused f_ and fc_ variables | Guillem Jover | 1 | -7/+0 | |
2009-09-15 | Move LISTFILE macro from libdpkg to dpkg | Guillem Jover | 1 | -0/+2 | |
This is a private macro, internal to the file database handling code, currently in dpkg only. | |||||
2009-09-15 | Switch ad-hoc code to use struct pkg_list data type | Guillem Jover | 5 | -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-15 | Move pkg-array to libdpkg | Guillem Jover | 5 | -120/+2 | |
2009-09-15 | dpkg: Update list of binaries to check on PATH | Guillem Jover | 1 | -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-15 | dpkg: Use secure_unlink instead of ad-hoc code | Guillem Jover | 1 | -17/+2 | |
2009-09-15 | Improve secure_unlink comment and move it outside the function | Guillem Jover | 1 | -3/+9 | |
2009-09-15 | Rename chmodsafe_unlink functions to secure_unlink | Guillem Jover | 3 | -7/+7 | |
2009-09-15 | Only use errno for error reason when securely removing a file | Guillem Jover | 3 | -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-15 | Use character arrays instead of pointers for constant strings | Guillem Jover | 1 | -1/+1 | |
2009-09-08 | dpkg: Remove obsolete conffiles on purge | Guillem Jover | 1 | -1/+0 | |
Closes: #454628 | |||||
2009-09-06 | dpkg: Use ohshit on bad version syntax in --compare-versions | Guillem Jover | 1 | -10/+4 | |
2009-09-06 | dpkg-query: Add installed package control path query support | Guillem Jover | 2 | -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-06 | Unify and mark strings for translation | Guillem Jover | 2 | -3/+3 | |
2009-09-06 | Use m_output instead of checking printing functions return code | Guillem Jover | 4 | -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-06 | Use m_output instead of fflush, ferror and werr | Guillem Jover | 5 | -22/+25 | |
2009-09-06 | dpkg: Check stdout for errors instead of stderr in audit() | Guillem Jover | 1 | -1/+3 | |
2009-09-06 | dpkg: Remove unused act_compareversions | Guillem Jover | 1 | -1/+0 | |
2009-09-06 | dpkg: Sort and group ‘enum action’ values | Guillem Jover | 1 | -10/+42 | |
2009-09-06 | libdpkg: Move buffer I/O declarations to buffer.h | Guillem Jover | 5 | -0/+5 | |
2009-09-06 | dpkg: Add new invoke hooks support | Guillem Jover | 2 | -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-22 | Set DPKG_MAINTSCRIPT_ARCH env var with the .deb architecture | Guillem Jover | 1 | -0/+1 | |
This allows maintainer scripts to know which architecture the package got built for. | |||||
2009-08-22 | Pass ‘struct pkginfoperfile’ from maint script functions to do_script | Guillem Jover | 1 | -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-22 | Pass ‘struct pkginfo’ instead of pkg name to maint script functions | Guillem Jover | 4 | -16/+23 | |
This allows us to retrieve package information from the maintainer script invoking functions. | |||||
2009-08-21 | Add support for config.d style directory fragment loading | Guillem Jover | 1 | -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-16 | Cast field width function arguments to int | Guillem Jover | 1 | -1/+2 | |
2009-08-16 | Set action_todo as volatile to avoid possible clobbering on longjmp | Guillem Jover | 1 | -1/+1 | |
2009-08-15 | Use AM_CPPFLAGS instead of deprecated INCLUDES in Makefile.am files | Guillem Jover | 1 | -1/+1 | |
2009-08-15 | dpkg: change behaviour of --merge-avail | Ian Jackson | 1 | -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-13 | Remove double slash in database path creation | Guillem Jover | 1 | -1/+1 | |
Visible to the user in some error conditions. | |||||
2009-08-09 | dpkg: On file conflicts print the version of the conflicted package | Guillem Jover | 1 | -5/+11 | |
Makes it easier to report bugs, without needed to additionally check the installed version of the conflicted package. Closes: #540019 | |||||
2009-07-15 | libdpkg: Move subproc related declarations to subproc.h | Guillem Jover | 2 | -0/+2 | |
2009-07-15 | libdpkg: Split dpkg-priv.h into smaller pieces | Guillem Jover | 3 | -3/+4 | |
Make the dependencies on other modules explicit, and avoid clutter by not including unneeded stuff. | |||||
2009-07-15 | Disable default automake preprocessor include paths | Guillem Jover | 23 | -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-15 | libdpkg: Rename dpkg-i18n.h to i18n.h | Guillem Jover | 20 | -20/+20 | |
2009-07-15 | Remove unused dpkg-priv.h header includes | Guillem Jover | 4 | -4/+0 | |
2009-07-15 | libdpkg: Move C language definition macros to macros.h | Guillem Jover | 3 | -3/+3 | |
2009-07-15 | libdpkg: Rename and namespace compiler attributes | Guillem Jover | 2 | -4/+4 | |
Prefix them all with DPKG_ATTR_, and use shorter but still meaningful names. |