- 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
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
This will chroot() to rootdir and removes many chroot() commands
from those scripts.
--HG--
extra : convert_revision : 4845df1949996da1bcd2776fcc50c3d0a00b451b
Add util funcs to get/set global values for them:
* xbps_[gs]et_rootdir()
* xbps_[gs]et_flags()
--HG--
extra : convert_revision : 2584b098e68a684e7b0eeac57c2b1df4aba6589d
It seems that it was failing in the VM where I'm running only
all xbps packages for unknown reasons.
--HG--
extra : convert_revision : d7403820e238688af67265aed921ad7a007d27a4
First remove all links, next files and last dirs.
Only check the SHA256 hash for files, skip links and dirs.
--HG--
extra : convert_revision : b1762d5e795959591c732f625d25adfd1840f592
* If a dir is listed in $keep_dirs it won't be removed (anyway any
directory that is not empty won't either).
* If a config file hasn't been modified (SHA256 hash matches) the
file will be removed, otherwise it won't be removed.
There's still missing support to handle new configuration files when
there's an existing file, but will do later.
--HG--
extra : convert_revision : 448af95876fc7a47da07a9a910d6111047f72271
Some other changes related for this:
- Modify binpkg.sh to always insert the INSTALL script at head of
the archive, and appending files after it.
- Modify binpkg.sh to compress binpkgs with bzip2 -9 to save some bytes.
--HG--
extra : convert_revision : b651b944f11c48dede1bbcea658182bf0984e8f3
This currently checks:
- While removing, any file is checked and if hash doesn't match the
file is ignored and not removed.
- While installing, if a binary pkg file doesn't match with the one
reported by the repository's pkg index file, the process will be
stopped.
--HG--
extra : convert_revision : 42bb64e89a092f0ff3e7d951e5b26e45d63a60fe
This implementation will be faster and resolv the dependency chain
correctly taking into account indirect/direct deps and priority.
--HG--
extra : convert_revision : cc4ec186f06f944fa8825b176344c4d612658f85