Commit Graph

6 Commits

Author SHA1 Message Date
Juan RP
e20bc0a239 xbps_configure_pkg: use a bool to know if pkg is installed or not.
--HG--
extra : convert_revision : 799b0e741c8660d84c68ec63c99dea8b52c093d7
2009-08-14 07:11:09 +02:00
Juan RP
99384e1f5e xbps_configure_pkg: add a safety check.
--HG--
extra : convert_revision : 4e3c7b7a52603baf0e447d1e32f9598df3b5b979
2009-08-13 17:30:39 +02:00
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
a5829d5467 Fix xbps-bin install without using a rootdir.
--HG--
extra : convert_revision : 7d9b697caa3f6d5c8b3d07462093c33c7fbfea29
2009-08-10 00:08:58 +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