summaryrefslogtreecommitdiff
path: root/src/processarc.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-12dpkg: Properly mark packages being purged for disappearanceGuillem Jover1-1/+2
When a package has been purged, it should be marked as want_unknown and the configversion blanked, otherwise dpkg considers it to still be informative and keeps it around, which needs later on manual intervention from the user to clean up the database.
2009-06-19Use NUL character instead of 0Guillem Jover1-4/+5
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-18/+11
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-08-04dpkg: Use blankpackageperfile instead of manually blanking the membersGuillem Jover1-9/+2
2008-07-22Rename struct packageinlist to pkg_deconf_listGuillem Jover1-1/+1
2008-07-22Give a proper type and name to the xinfo member in packageinlistGuillem Jover1-1/+1
This struct is being used privately by the deconfiguring code, so we can give a proper type and name to the member.
2008-07-10dpkg: Move trig_file_activate call from namenodetouse to its callersGuillem Jover1-1/+6
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 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-06-30libdpkg: Constify strings members for package db structsGuillem Jover1-2/+4
2008-06-28Fix localized stringsGuillem Jover1-5/+4
2008-05-11Activate triggers when a file is removed in a shared directoryRaphael Hertzog1-3/+5
* src/processarc.c (process_archive): While removing files that disappeared, move the call to namenodetouse before the test that skips directory shared with other packages. This is required because namenodetouse() handles trigger activation and we really want directories containing (only) removed files to activate the corresponding triggers.
2008-03-30Implement triggers supportIan Jackson1-4/+29
Closes: #17243, #68981, #215374, #217622, #248693, #308285
2008-03-25Improve log and status-fd outputIan Jackson1-1/+1
Add calls to log_message and hook statusfd_send into log_action.
2008-03-22Sort entries in enum pkgstatusIan Jackson1-1/+1
Fix all users that rely on the enum sorting.
2008-03-22Few file descriptor cleanup and error handling fixesIan Jackson1-3/+4
Closes: #443338
2008-01-21Fix incorrect sizeof in a memset callIan Jackson1-1/+1
2008-01-16Use NULL instead of 0Guillem Jover1-44/+52
2007-08-08Use NULL instead of '(char *)0'.Guillem Jover1-10/+10
2007-08-08Fix Breaks commit.Guillem Jover1-20/+29
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-19/+20
As a side effect, run the deconfiguration of each package to be deconfigured once, instead of once per each conflicting package being removed.
2007-01-15Add a missing newline to a warning message in dpkg. Closes: #390914Guillem Jover1-1/+1
Thanks to Ian Jackson.
2006-08-08Add initial support for the Breaks field, by parsing but rejecting it.Guillem Jover1-0/+10
Thanks to Ian Jackson <iwj@ubuntu.com>. Closes: #375703
2006-05-31Update the Section and Priority fields in the status file from theGuillem Jover1-1/+1
new packages. We assume that the information from the binary package is correct, otherwise it should be fixed there to match the archive override file (Koblinger Egmont). Closes: #54529, #58106, #81171, #230610, #237622, #237626
2006-05-19Update archtable to reflect current archive: Add amd64 and removeFrank Lichtenheld1-0/+2
sh. Closes: #367329
2006-02-13Add a missing closing parenthesis in a dpkg string (Jordi Mallach).Guillem Jover1-1/+1
2006-02-10Improve processing of disappearing conffiles (Ian Jackson).Frank Lichtenheld1-54/+99
This is part of the fix for #108587. * lib/dpkg-db.h (conffile): Add `obsolete' field. * lib/dump.c (w_conffiles): Write "obsolete" at the end of conffile entry if obsolete is set. * lib/fields.c (f_conffiles): Parse entries for obsolete conffiles correctly. * src/filesdb.h (filenamenode.flags): Add new flag for obsolete conffiles. * src/remove.c (removal_bulk_remove_configfiles): Handle obsolete conffiles. * src/archives.c (newconff_append): New function to append a filenamenode to a fileinlist. (addfiletolist): New function to add a filenamenode to a tarcontext. (tarobject): Use new addfiletolist function. Handle case where a new package takes over an obsolete conffile from another package. * src/archives.h: Add declaration of the addfiletolist function. * src/processarc.c (process_archive): Use new newconff_append function from archives.c. Detect obsoleted conffiles and mark them as such. * src/help.c (chmodsafe_unlink): Make it possible to differentiate between failed chmod and failed unlink by adding a new `failed' argument which will be set to the name of the failed command. (chmodsafe_unlink_statted): New function that can be called if we already have a stat result for the file/directory to be removed. (ensure_pathname_nonexisting): Give better error messages by utilizing the changes to chmodsafe_unlink. * src/main.h: Reflect changes in archives.c and help.c (add declarations for newconff_append and chmodsafe_unlink_statted and change the one of chmodsafe_unlink). (conffopt): Add new isold flag.
2006-01-18Import latest release as a temporary trunk which should beFrank Lichtenheld1-4/+11
later merged into a branch with the full history from CVS and arch
2005-03-18dpkg (1.13.2) experimental; urgency=lowScott James Remnant1-2/+5
* md5sum has been removed, the coreutils or textutils version will be diverted to /usr/bin/md5sum. Closes: #6633, #136110. The following bugs are filed against the dpkg md5sum, so no longer apply. Closes: #95755, #193877, #223381, #264195, #270241, #286632, * Take Replaces into account when installing packages; don't issue a "trying to overwrite" error if the file that already exists is in a package that Replaces the one being installed. Closes: #164595, #184635, #277890. * Allow actions and status changes to be logged to a file. Disabled by default, uncomment line in /etc/dpkg/dpkg.cfg to enable. Closes: #957, #53376, #77109, #143882, #284499. * Don't truncate output of 'dpkg -l' when stdout is not a tty. Closes: #92263, #253860, #258608, #261822, #282790. * Fix further compilation problems with gcc 4.0. Closes: #299699 * Handle tar files without trailing slash in directory names. Closes: #287152. * Output arguments to maintainer scripts with -D2. Closes: #237684, #296030. * Architecture Support: - Added ppc64. Closes: #263743. - Split archtable into cputable and ostable, archtable is retained for compatibility with other packages that might use it only. - dpkg-architecture no longer canonises -t argument. Closes: #173205. - dpkg-architecture output includes new DEB_*_ARCH_OS and DEB_*_ARCH_CPU variables that contain the Debian system and CPU names respectively. - dpkg-architecture outputs (mostly) correct GNU system names now, in particular this means that it will output "linux-gnu" instead of "linux". You should use the new _ARCH_OS variables instead. * Documentation: - Add examples to dpkg-divert(8). Closes: #291816. - Correct typo in dpkg-architecture(1). Closes: #299090. -- Scott James Remnant <scott@netsplit.com> Fri, 18 Mar 2005 16:21:32 +0000
2005-03-11dpkg (1.13.1.0.1) experimental; urgency=lowScott James Remnant1-0/+1055
* 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