summaryrefslogtreecommitdiff
path: root/src/cleanup.c
AgeCommit message (Collapse)AuthorFilesLines
2019-01-22libdpkg: Cleanup fsys module symbol namesGuillem Jover1-4/+4
2018-08-30libdpkg: Move db-fsys code from src to lib/dpkgGuillem Jover1-1/+1
This will prepare the ground for external programs to start using libdpkg to access the dpkg fsys database via a proper API, instead of messing with the on-disk layout in so many improper ways.
2016-05-02dpkg: Pass <new-version> to maintscript actions that cannot get it otherwiseGuillem Jover1-0/+2
The upgrade actions and their rollback counterparts do not have access to the new binary package which is somewhere on the filesystem depending on how dpkg was invoked, nor to its metadata. If the maintainer script wants to know the <new-version>, it needs to be turned into a template and that version instantiated at build-time, which is cumbersome. So we now pass <new-version> when these upgrade actions are already getting <old-version>, but not on the cases where they do not get any argument at all, as that's their differentiator. Prompted-by: Andrey Utkin <andrey.krieger.utkin@gmail.com>
2015-10-18Update Ian Jackson's email addressGuillem Jover1-1/+1
2015-04-18debian: Update my copyright yearsGuillem Jover1-1/+1
2015-04-10Consistently use proper quotation marks all over the placeGuillem Jover1-4/+5
That is "" or '', and not the unbalanced `' pair.
2015-04-01libdpkg: Move path removal functions to path-remove moduleGuillem Jover1-0/+1
2015-01-26Remove unused <ctype.h> includesGuillem Jover1-1/+0
2014-06-02libdpkg: Uppercase and namespace pkgstatus enum valuesGuillem Jover1-5/+5
2014-06-02libdpkg: Uppercase and namespace pkgeflag enum valuesGuillem Jover1-7/+7
2013-12-07Use https:// URLs instead of http:// when possibleGuillem Jover1-1/+1
2013-12-07dpkg: Rename add_to_queue() to enqueue_package()Guillem Jover1-1/+1
2013-11-23dpkg: Rename and unify maintscript function namesGuillem Jover1-45/+43
2012-03-27dpkg: Rename <foo> to «pathname» in comments to not confuse doxygenGuillem Jover1-11/+11
Doxygen considers <word> as HTML markup text, and issues warnings on unknown keywords.
2012-03-27Do not use `' quote pairs for non-translatable stringsGuillem Jover1-1/+2
2012-03-16dpkg: Pass filenamenode instead of fileinlist to cu_installnew()Guillem Jover1-3/+1
2012-03-14dpkg: Use package specifiers for maintainer script argumentsGuillem Jover1-4/+11
Replace pkg->set->name with pkg_name() and pkgbin_name(). Based-on-patch-by: Raphaël Hertzog <hertzog@debian.org> Patch-sponsored-by: Linaro Limited Signed-off-by: Guillem Jover <guillem@debian.org>
2012-02-18Use new package status setters instead of direct assignmentsGuillem Jover1-9/+11
This does not apply for package constructors.
2011-10-27Switch from pkginfo->name to pkginfo->set->nameGuillem Jover1-4/+4
Remove now unused struct pkginfo name member.
2011-07-07libdpkg: Rename myopt module to optionsGuillem Jover1-1/+1
2011-04-29dpkg: Move <dpkg/tarfn.h> inclusion from cleanup.c to archives.hGuillem Jover1-1/+0
The former is not using any declarations from tarfn.h, but the latter is.
2011-02-11libdpkg: Rename cmdinfo arg membersGuillem Jover1-1/+1
The current names are not descriptive enough, so rename parg to arg_ptr, farg to arg_func, and finally arg to arg_int (which disambiguates what kind of data it's holding).
2011-01-16Rename struct pkginfoperfile to struct pkgbinGuillem Jover1-1/+1
2010-11-19Cleanup white spacesGuillem Jover1-4/+4
Remove trailing spaces. Remove blank lines not separating different code blocks. Remove blank lines at the end of the file.
2010-11-19Cleanup and improve source code commentsGuillem Jover1-22/+29
Global review, which includes the following changes to try to increase consistency, update and improve the source code comments: - Spelling fixes. - Use American English forms. - Uppercase NULL, NUL and ASCII. - Use “Note: ” instead of the slightly cryptic “NB: ” form. - Write comments as proper sentences, including capitalizations and ending dots. - Move comments before the code, function or variable they refer to. - Move general function comments outside the body. - Convert function and variable description comments to doxygen. - Use one space before dot, exclamation and question marks. - Use ‘’ or “” instead of `' style quoting. - Remove author names from comments, already visible from “git blame”. - Mark strings for translators with “TRANSLATORS: ”. - Remove useless or outdated comments. - Fix comment indentation. - Standardize comment format: /* Short text comment. */ /* Long text, * comment. */ /* * Section text. */
2010-11-19libdpkg: Rename package blank functions to pkg_blank and pkg_perfile_blankGuillem Jover1-1/+1
2010-11-02dpkg: Rename unlinkorrmdir() to secure_remove()Guillem Jover1-3/+3
Maps better to the system remove(2) function name.
2010-08-13Remove spurious leftover .dpkg-tmp files after unpacking failureSven Joachim1-0/+4
Renaming the backup copy to the old name is a no-op if these are hard links to the same file. So we need to remove the backup copy afterwards to make sure it is gone. Closes: #591993 Signed-off-by: Guillem Jover <guillem@debian.org>
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-8/+9
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-08-22Pass ‘struct pkginfo’ instead of pkg name to maint script functionsGuillem Jover1-3/+3
This allows us to retrieve package information from the maintainer script invoking functions.
2009-07-15Disable default automake preprocessor include pathsGuillem Jover1-4/+4
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-07-14Cleanup eflag value namesGuillem Jover1-6/+6
Remove f and v from value names. Remove duplicated value for reinstreq.
2009-07-12Remove unused assert.h includesGuillem Jover1-1/+0
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-30Refactor postinst maintainer script handlingGuillem Jover1-27/+23
Based on a patch by Ian Jackson <ian@davenant.greenend.org.uk>.
2008-03-30Refactor post postinst script tasks into a new functionGuillem Jover1-8/+4
Based on a patch by Ian Jackson <ian@davenant.greenend.org.uk>.
2007-09-15Fix failed install followed by failed remove resulting in installed stateBrian M. Carlson1-1/+2
After '<prerm> remove' fails and while doing the error unwinding, if the '<postinst> abort-remove' call succeeds, preserve the old status instead of unconditionally setting it to 'Installed'.
2007-08-08Use NULL instead of '(char *)0'.Guillem Jover1-9/+9
2007-08-08Fix Breaks commit.Guillem Jover1-9/+19
Enable depisok for the Breaks case. Remove comments stating Breaks needs to be implemented. And split functions calls which had different arguments depending on a variable.
2007-08-07Implement support for Breaks field.Ian Jackson1-5/+7
As a side effect, run the deconfiguration of each package to be deconfigured once, instead of once per each conflicting package being removed.
2006-01-18Import latest release as a temporary trunk which should beFrank Lichtenheld1-6/+11
later merged into a branch with the full history from CVS and arch
2005-03-11dpkg (1.13.1.0.1) experimental; urgency=lowScott James Remnant1-0/+227
* 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