summaryrefslogtreecommitdiff
path: root/src/archives.h
AgeCommit message (Collapse)AuthorFilesLines
2012-03-27dpkg: Refactor code into new clear_deconfigure_queue() functionGuillem Jover1-0/+1
2012-03-27Mark enum and struct member comments as doxygen descriptionsGuillem Jover1-1/+1
2012-03-18dpkg: Store in tarcontext whether the pkgset is getting in syncGuillem Jover1-0/+2
This will be used later by the extraction code to know whether it should ensure consistency of shared files or not. 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-03dpkg: Refactor deconfiguration queueing into enqueue_deconfigure()Guillem Jover1-0/+1
2012-02-03dpkg: Rename push_conflictor() to enqueue_conflictor()Guillem Jover1-1/+1
2011-04-29dpkg: Move <dpkg/tarfn.h> inclusion from cleanup.c to archives.hGuillem Jover1-0/+2
The former is not using any declarations from tarfn.h, but the latter is.
2011-02-11dpkg: Refactor conflictor addition to a new push_conflictor() functionGuillem Jover1-2/+1
Move the conflictor and cflict_index variables to processarc.c and make them static. And create a new push_conflictor() function to hide the implementation details. This fixes a warning on variable shadowing.
2010-11-02dpkg: Rename unlinkorrmdir() to secure_remove()Guillem Jover1-1/+2
Maps better to the system remove(2) function name.
2010-07-29libdpkg: Rename TarInfo to tar_entryGuillem Jover1-1/+1
2010-07-29Pass tar context pointer as an argument instead of a struct memberGuillem Jover1-1/+1
The context does not have anything to do with the TarInfo struct, so pass it as a function argument either as 'void *' or as 'struct tarcontext *' if the type is known.
2010-04-14dpkg: fix deferred rename/fsync processingColin Watson1-1/+1
It was scanning the old list of files so it would never install new files.
2010-03-25dpkg: Defer the fsync and rename for normal files in tar extractionGuillem Jover1-0/+1
This way it's done in one pass afterwards, to avoid massive I/O degradation due to the serialization from each write + fsync. This restores extraction times to numbers closer to the ones before the fsync patch introduced in 1.15.6.
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-09-30Switch to use stdbool were appropriateGuillem Jover1-2/+4
2008-07-22Move struct pkg_deconf_list declaration to archives.hGuillem Jover1-0/+6
2008-07-22Rename struct packageinlist to pkg_deconf_listGuillem Jover1-1/+1
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.
2007-08-07Implement support for Breaks field.Ian Jackson1-0/+2
As a side effect, run the deconfiguration of each package to be deconfigured once, instead of once per each conflicting package being removed.
2006-02-10Improve processing of disappearing conffiles (Ian Jackson).Frank Lichtenheld1-0/+3
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.
2005-03-11dpkg (1.13.1.0.1) experimental; urgency=lowScott James Remnant1-0/+71
* 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