Commit Graph

86 Commits

Author SHA1 Message Date
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
Juan RP 3fca3406eb TODO: xbps-bin: implement shell style match patterns with fnmatch.
--HG--
extra : convert_revision : 39d27e30f4af3bb93c63c3eb0091040321bb8527
2009-04-05 15:19:15 +02:00
Juan RP a6657b74ca TODO: another item for 'xbps-bin -C files pkg'.
--HG--
extra : convert_revision : 6f6074c915e9d6a54e904b8d7542837d39c79be2
2009-04-03 19:48:50 +02:00
Juan RP b329b3be39 xbps-bin: fix "-C files" as mentioned in TODO.
--HG--
extra : convert_revision : 21dc44831330411f079044c47b5bc6f53c599126
2009-04-03 17:15:38 +02:00
Juan RP 5abc453952 TODO: some more new items.
--HG--
extra : convert_revision : c1bb9a091c80d0a84ca229d21cdf085eb5f94219
2009-04-03 17:09:08 +02:00
Juan RP b75a66a26a BINPKG_INFO: sync with reality.
--HG--
extra : convert_revision : 2cdbac32858408695a6bb40539fc5a01a6ca4f17
2009-04-03 17:02:38 +02:00
Juan RP 0a1c94ad11 TODO: remove xbps-src item that won't be implemented.
--HG--
extra : convert_revision : 3d8f47398b3f84477fe722dd0d0020e4e440338f
2009-04-03 16:57:43 +02:00
Juan RP 8a5d47430e Long life to the xbps-repo genindex C implementation!
--HG--
extra : convert_revision : af0ca601ae79ba1b38fbf0815e6365f558ca22d8
2009-04-03 16:03:31 +02:00
Juan RP 03bc2cad21 TODO: remove items that have been fixed related to repo index.
--HG--
extra : convert_revision : 2b06e9083e0c8b7b0fc63cd6d259eb43f53f13ea
2009-04-03 15:47:21 +02:00
Juan RP cb21ca090c TODO: working in xbps-repo genindex C code now.
--HG--
extra : convert_revision : b6f91d3c96cc54f502b790b3a9086981aab3f6c7
2009-04-02 18:00:45 +02:00
Juan RP 7e691eaf65 TODO: single pkg upgrades are working, add item for "apt-get dist-upgrade" clone.
--HG--
extra : convert_revision : 54c892fb30a1a606385b29e2b450c6fef3bcd334
2009-04-02 03:13:40 +02:00
Juan RP 7db36bf9e0 TODO: user files in /etc/skel are there now.
--HG--
extra : convert_revision : 7ab7361422b7d9d53756f0681224d369ac906f59
2009-04-02 02:46:06 +02:00
Juan RP 8bb195410d TODO: $revision has been added, remove item.
--HG--
extra : convert_revision : 877aa8af58095c70c5872bdd9035de9214ffd9ba
2009-03-27 16:41:56 +01:00
Juan RP c661af8233 TODO: more stuff.
--HG--
extra : convert_revision : 32420a6f071350ebd71b596f50719ac6c242bf77
2009-03-22 05:06:44 +01:00
Juan RP e1425ea26c TODO: a trigger to (un)register users/groups is needed.
--HG--
extra : convert_revision : 834616556c7fc6121f9e0f2cd2b9db6e990ee144
2009-03-19 06:56:20 +01:00
Juan RP cb3df7a9ba TODO: fc-cache trigger is missing.
--HG--
extra : convert_revision : 45cbd9c108afe43e23a5d4cf54b8ea24514969cb
2009-03-19 03:22:24 +01:00
Juan RP 0ed055c4eb Don't continue installing a binpkg if newest version in repos is already installed.
--HG--
extra : convert_revision : b73376d091fd95f4cfd92cbdba21f4bc93781504
2009-03-17 05:10:21 +01:00
Juan RP bc1e2c8dcd TODO: I'm working in package upgrades now.
--HG--
extra : convert_revision : 01360954acd2aa4e0ff7c56e1d5b116eebf1a3e1
2009-03-16 07:08:13 +01:00
Juan RP 96c57cfb43 TODO: add another item.
--HG--
extra : convert_revision : fbf112f5e9e4a90ce3370d43414792a2dbc1b7c5
2009-03-16 07:05:10 +01:00
Juan RP f0887665fe Added two features missed in previous.
--HG--
extra : convert_revision : 245256117c7607d0020b81bf0f8e689467afc3f2
2009-03-14 07:46:08 +01:00
Juan RP 7c0071facc doc/FEATURES: mention some implemented features.
--HG--
extra : convert_revision : d4e86d69f11b2d1bcf12dc72f0e81dfafa3f0e1d
2009-03-14 07:41:58 +01:00
Juan RP 855ec90fdf Add $register_shell var, to (un)register shells at post-{inst,rm} for binpkgs.
Multiple shells can be (un)registered by a single package, like:

register_shell="/bin/zsh-foo /bin/zsh-blah"

--HG--
extra : convert_revision : 0172a74b41e26089da97fcdc8cc2d5cb6ae147f2
2009-03-14 07:32:48 +01:00
Juan RP 5d8328894d TODO: add some items required to make the system functional.
--HG--
extra : convert_revision : 38807c2fb729923194c903bf43be5a7b586c6436
2009-03-13 18:54:30 +01:00
Juan RP 53747489f0 Implemented support for running triggers with binpkgs.
Also the following changes were made:
 * Added an info-files trigger, to (un)register info files.
 * xbps-base-dirs: it's responsible to install triggers on destdir.

--HG--
extra : convert_revision : 8d707053616f38d2b5beef7cf28e1bc4a66812b8
2009-03-12 11:16:08 +01:00
Juan RP 37c27f7307 TODO: mark an item as stopped... not sure it will be implemented.
--HG--
extra : convert_revision : 2208040f9ee9cb2b21f73b45f75eccd7c34f2a83
2009-03-12 10:53:16 +01:00
Juan RP 348485f208 Added a FEATURES file mentioning stuff that's currently implemented.
--HG--
extra : convert_revision : af0535158c17afbefeabb748e8e3c16c7c8f5442
2009-03-12 10:37:15 +01:00
Juan RP 95b01cfd63 TODO: mark two items IN PROGRESS.
--HG--
extra : convert_revision : a9c2605eda8a80bb2bd437cdf8fdb117497fef61
2009-03-11 23:29:56 +01:00
Juan RP cffbaad064 TODO: initscripts are provided, even by reusing NetBSD's rc.d.
--HG--
extra : convert_revision : e1f7b42a90ebbe7d4ab12856dc34cef1a3edc25f
2009-03-06 08:25:41 +01:00
Juan RP 37e4be86f9 Added support to check the SHA256 hash for any binpkg before installation happens.
--HG--
extra : convert_revision : 4f812eb0cfb614461527e360db1692bd5f9c34aa
2009-03-02 23:38:24 +01:00
Juan RP 0d8f08e8ea Added support to list and remove orphaned packages.
A new target has been added to xbps-bin: autoremove. It works in
the same way than 'apt-get', but there's no stdin input. By default
it will list you all orphaned packages, and -f flag must be set
to really remove them.

The following is a real example for the git package, which requires
directly perl and curl-libs, and indirectly libidn and openssl.

$ xbps-bin -r ~/testing-xbps remove git
Removing package git-1.6.1.3 ... done.
$

$ xbps-bin -r ~/testing-xbps autoremove
The following packages were installed automatically
(as dependencies) and aren't needed anymore:

	perl-5.10.0 curl-libs-7.19.0 libidn-1.10 openssl-0.9.8j

If you are really sure you don't need them, use -f to confirm.
$

--HG--
extra : convert_revision : 70eebaa3d99be27753b94f580c8ec86330c7c2d3
2009-03-02 02:26:20 +01:00
Juan RP f1f34487e2 xbps-bin: added -f flag for remove target.
Now if any package is going to be removed and it's required by
other packages, it won't let you remove it unless -f is set.

Here's an example of how it looks like:

[juan@fedora-vm xbps]$ xbps-bin -r ~/testing-xbps remove glibc
WARNING! glibc is required by the following packages:

	zlib-1.2.3 ncurses-libs-5.7 gcc-libstdc++-4.3.2 e2fsprogs-libs-1.41.4
	cracklib-2.8.13 expat-2.0.1 ncurses-5.7 cpio-2.9
	module-init-tools-3.6 busybox-initramfs-1.13.2 udev-138 procps-3.2.7
	pam-1.0.2 dbus-libs-1.2.12 lzma-utils-libs-4.32.7 coreutils-7.1
	sed-4.1.5 grep-2.5.4 gawk-3.1.6 gzip-1.3.12
	bzip2-1.0.5 bash-4.0 less-424 gdbm-1.8.3
	groff-1.20.1 lzma-utils-4.32.7 dbus-1.2.12 proplib-0.3
	dash-0.5.4 findutils-4.4.0 util-linux-ng-2.14.2 initramfs-tools-0.92o
	file-5.00 diffutils-2.8.1 wget-1.11.4 man-db-2.5.3
	sysklogd-1.5 eject-2.1.5 shadow-4.1.2.2 sudo-1.7.0
	e2fsprogs-1.41.4 tzdata-2009a vim-7.2 upstart-0.5.1
	kernel-2.6.28.1 xbps-base-pkg-0.1 kbd-1.14.1

If you are sure about this, use -f to force deletion for this package.
[juan@fedora-vm xbps]$

--HG--
extra : convert_revision : eeb92925e51f11d5b3bf7e069ed4986ae5fb0c2d
2009-03-01 01:34:15 +01:00
Juan RP b4806141f7 TODO: another item.
--HG--
extra : convert_revision : c24c1f09857cb4f4c33716e66e1702bf2935cdd3
2009-03-01 00:37:28 +01:00
Juan RP 7acc216a1c TODO: add some more items.
--HG--
extra : convert_revision : 03f9b2d2878248fdad68a7c2b3696e7361b9fbec
2009-03-01 00:34:00 +01:00
Juan RP c136f6193d TODO: another item.
--HG--
extra : convert_revision : 69c734f622b926b9fd7025c6a533718de3a49363
2009-02-28 17:50:53 +01:00
Juan RP f28419db7d TODO: updated an item.
--HG--
extra : convert_revision : 94bb4cbee658815f9601571ee697cdbf54c6fdfd
2009-02-27 17:48:47 +01:00
Juan RP 750f467fe6 Take into account $conf_files and $keep_dirs when removing a pkg.
* 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
2009-02-27 17:41:31 +01:00
Juan RP f211c85e6d Updated TODO.
--HG--
extra : convert_revision : 6b37e23d827b9fabb0305e1de5c1a8ac780bd9da
2009-02-27 16:00:38 +01:00
Juan RP a00ae944b5 Rename prepost-{inst,rm} to just INSTALL/REMOVE.
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
2009-02-26 18:01:18 +01:00
Juan RP 255c48b198 Added support to check SHA256 integrity for binary pkgs.
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
2009-02-26 05:41:49 +01:00
Juan RP 028cacdd2a Add support to set automatic install flag for srcpkgs.
--HG--
extra : convert_revision : fa0e103ce44a4758858124ecd63aea0dec400720
2009-02-18 00:28:35 +01:00
Juan RP 3b3d788c7c Improve the build deps strategy, this is now pkgsrc-alike.
The list of build dependencies is shown, and if any of them
has deps, the list is shown for it and so on. This has the effect
of installing the deps in the order that they were specified
in the template, at the expense of a minor performance ratio.

--HG--
extra : convert_revision : 231ed52da19201bdeab65d0f9db78ab83b51e010
2009-02-17 17:15:12 +01:00
Juan RP 0bb1780f8e shutils: use xbps-pkgdb getpkg{name,version}, remove item from TODO.
--HG--
extra : convert_revision : 69927380509b3bc6b3f80ee3cbc44953bdd2b729
2009-02-17 13:58:34 +01:00
Juan RP fda3da1543 Use string version comparator code from FreeBSD.
This fixes all cases that previous code has with no changes...
sorry pancake.

--HG--
extra : convert_revision : 993d0aa060daf36d1b5ffa63725002dda122c091
2009-02-17 03:49:02 +01:00
Juan RP 1802997b0b xbps-src: require sudo to build packages.
The reason is that fakeroot can't read files that have restrictive
perms and you'd have to change them before the src installation, and
restoring them at binpkg pre-installation.

I prefer to avoid all this and build the pkg with appropiate perms.

--HG--
extra : convert_revision : 8a5086049ab575962913eda0cb2ace0c211b97f1
2009-02-16 17:36:21 +01:00
Juan RP 2b24128059 xbps-bin: added support for the show target.
--HG--
extra : convert_revision : 24b2d30a94c95b22b1c524203cf578da03314335
2009-02-16 16:24:33 +01:00
Juan RP 3bfe373475 TODO: another case that fails in xbps-cmpver.
--HG--
extra : convert_revision : 12f42919105bd7e6cbf3472308d8add1f0114304
2009-02-16 05:41:43 +01:00
Juan RP 3ac13cd512 TODO: new item for xbps-src.
--HG--
extra : convert_revision : 2ad510ebe24c8585a31cd34a1e4bb4b4f332e01b
2009-02-16 01:24:22 +01:00
Juan RP 6b6162bb44 Added support for using noarch packages.
--HG--
extra : convert_revision : a96166ddecb6efe65d35283f25e06a944cc4a038
2009-02-16 00:39:41 +01:00
Juan RP cf830c8b04 TODO: add item about noarch binpkgs.
--HG--
extra : convert_revision : 08816d99cf80a5a7284f6263efd3513cc1afa5af
2009-02-15 19:28:46 +01:00
Juan RP 902fb71aa6 Changed XBPS_META_PATH to /var/db/xbps rather than /var/cache/xbps.
--HG--
extra : convert_revision : 4e10af13ce05f060ebdfa8ca4e767a269c46b17f
2009-02-14 23:21:12 +01:00