Commit Graph

4 Commits

Author SHA1 Message Date
Juan RP
6ff28f6d79 xbps-bin: fix a leak in install.c.
--HG--
extra : convert_revision : b333ca851cf33efe1f63af1637192552ff8f7de4
2009-04-09 12:47:17 +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
Juan RP
3698644967 xbps-bin: use xbps_noyes() in the install/update targets.
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
2009-04-09 04:54:09 +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