Commit Graph

14 Commits

Author SHA1 Message Date
Juan RP
697aecf693 lib/findpkg.c: share some code.
--HG--
extra : convert_revision : c466c6c986821623cebaed2a0eade9cc8658d6f0
2009-08-12 07:57:46 +02:00
Juan RP
5ace634ade Remove unused headers.
--HG--
extra : convert_revision : f845161efa23a3c8c9f18f4febc7087347b0cff2
2009-08-12 07:48:03 +02:00
Juan RP
d89b19393b xbps_find_new_packages: iterator_reset -> iterator_release.
--HG--
extra : convert_revision : 2e5a55a859d40cf58fe70c3b7e17373fe3c05810
2009-08-12 07:17:11 +02:00
Juan RP
8cc7f6871d Added xbps_find_new_packages(): checks if there are new versions.
--HG--
extra : convert_revision : dcd764c96c013f8d299849791110af4f9a4a9401
2009-08-12 07:15:09 +02:00
Juan RP
db53f42345 xbps_prepare_pkg: don't forget to set 'trans-action' obj.
--HG--
extra : convert_revision : 41c7ec70808ede09d87801ebd8e1b94fe5bd6205
2009-08-11 20:22:01 +02:00
Juan RP
45a58485eb xbps-bin: show which pkgs are updated and installed before proceeding.
--HG--
extra : convert_revision : 2c2fcd7f3c5909d14d1519ffc7e8ac0cad124b34
2009-08-11 18:53:24 +02:00
Juan RP
350566818c xbps_find_new_pkg: always set pkg state.
--HG--
extra : convert_revision : e259f424344c9aa618e9ba515a4d39a8b9a11655
2009-08-09 23:34:07 +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
e1e3e254ab Remove dup xbps_cmpver_* func, use just the real one.
--HG--
extra : convert_revision : cde78bdcccc68bb865d5bd76a84c00055f451e96
2009-06-07 05:02:58 +02:00
Juan RP
3062c40e63 xbps_prepare_pkg(): fix <origin> obj location.
--HG--
extra : convert_revision : 0502559180e0aa2105fcde3e06ca73714725c31e
2009-05-19 03:33:15 +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
9f108b4cd2 xbps-bin: implemented (WIP) "autoupdate" target.
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
2009-05-17 04:09:26 +02:00
Juan RP
01be3b5920 Fix xbps_prepare_pkg() in pkgs without deps.
--HG--
extra : convert_revision : 9be76ef482e54bfbd7e6a038a504f8225aa89cfe
2009-04-10 01:36:22 +02:00
Juan RP
f80e1753a8 Remove knowledge from the library to install packages.
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
2009-04-09 02:29:15 +02:00