Commit graph

7 commits

Author SHA1 Message Date
Juan RP
0d04547576 Add the concept of purging a package, such as with dpkg.
By default a package when is removed, its configuration files
and metadata files won't be removed unless the package is purged.

While here add two targets for xbps-bin:

 * purge [<pkgname>|<all>], passing the "all" string (case insensitive)
   will purge all packages that are in this state (XBPS_PKG_STATE_CONFIG_FILES).

 * reconfigure [<pkgname>|<all>], reconfigures a package or "all"
   if package hasn't been configured. Passing -f reconfigures it again
   even if it's state is ok.

--HG--
extra : convert_revision : bd2d3913ca087a0565b05fa9ee3f9b6d5e3cb934
2009-08-13 16:46:20 +02:00
Juan RP
5ace634ade Remove unused headers.
--HG--
extra : convert_revision : f845161efa23a3c8c9f18f4febc7087347b0cff2
2009-08-12 07:48:03 +02:00
Juan RP
17404bdb42 Mega-commit with improvements and changes done in the past days.
- Introduce package states: unpacked, broken, installed, etc.
  Not yet finished, only unpacked and installed are used for now.

- Move package metadata files in binary packages directly to
  the top directory, this speeds up some ops and makes easier to
  continue working in future changes.

- xbps-bin: -C flag to check the hash of package files has been
  superseded by the 'check' target, which verifies the integrity
  of an installed package.

- Use the 'essential' object when upgrading packages, overwritting
  current files. This is needed for critical packages like sh, libc
  and others.

- Miscellaneous tweaks and improvements thorough the code.

--HG--
extra : convert_revision : 2073fcc123efc24b3e9327b5e22aa91752f20df6
2009-08-08 22:29:48 +02:00
Juan RP
38e6679ff5 Implemented plist caching, that gives >30% performance.
--HG--
extra : convert_revision : 6302893f967be96f99a86d499ca62a8c005e56f7
2009-05-19 01:42:48 +02:00
Juan RP
f0f53cb07e xbps-bin: use -f to bypass questions while installing/removing.
--HG--
extra : convert_revision : edefc4dbf4dbbcdac53579100732e77004a45463
2009-04-09 18:42:07 +02:00
Juan RP
92d2087c7e xbps-{bin,repo}: print with correct indentation.
--HG--
extra : convert_revision : be65d8b98702e23eaeac6ff2adb2e726824b64f7
2009-04-09 12:24:15 +02:00
Juan RP
679117e9a9 xbps-bin: move (auto)remove code into its own file, use xbps_noyes().
--HG--
extra : convert_revision : 20398840d20154d90c7457b7318c651c513c1f72
2009-04-09 11:56:40 +02:00