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
- 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
This fixes an item from the TODO about 'xbps-bin -C files' not checking
configuration files.
--HG--
extra : convert_revision : bb661554a6b34a25066749844709b8cbaf5a4d6c
Some parts in the library related to findings pkgs in repositories
has been improved vastly by caching the dictionary once.
Duplicated code has been added in xbps-bin/install.c, but will
be fixed soon.
--HG--
extra : convert_revision : 2924012a8589a2a6ecaa3863b5091049006c0ef3
So you can do you now:
$ xbps-repo search '*'
and it will list all registered packages.
--HG--
extra : convert_revision : d65edb4be6a0d815410d215774acf9ebeb23fa49
Now it looks like this:
$ xbps-bin -r ~/blah install initscripts
Finding/sorting required binary packages...
Checking binary package file(s) integrity...
The following new packages will be installed:
xbps-base-files-0.8_1 gcc-libgcc-4.3.3 glibc-locales-2.9
ncurses-base-5.7 glibc-2.9 ncurses-libs-5.7 gawk-3.1.6 grep-2.5.4
coreutils-7.1 sed-4.1.5 ncurses-5.7 kbd-1.15 findutils-4.4.0_1
net-tools-1.60 rcorder-2009.01 minilogd-2009.01 dhcpcd-4.0.12
bash-4.0 procps-3.2.7 udev-140_2 initscripts-2009.03_2
Total download size: 16M
Total installed size: 48M
Do you want to continue? [y/N]
...
--HG--
extra : convert_revision : e32a136ee882160637c1930d998c0f5ae3a6b108
The library is only responsible now to find all binary packages
from repositories, sort them and create a dictionary with all
details. The frontend (xbps-bin) provides support for this,
and this allows for more flexibility and removes some stuff
that didn't belong in the library.
While here implemented support to show total download/installed
size for all packages that are going to be installed.
Next step will be to implement user interactivity before
installing/removing/updating packages.
--HG--
extra : convert_revision : 858e9a89bc6a60b348435f2416a8af3ebb6ea5c9