Commit graph

56 commits

Author SHA1 Message Date
Juan RP
cbb1d1bef5 xbps-repo: fix search and show targets when first repo doesn't exist.
--HG--
extra : convert_revision : 2e5410f4461c62ceb51bb1296cab8a9076bc666a
2009-02-18 03:50:05 +01:00
Juan RP
2c7f9d1330 xbps-bin: fix typo in previous.
--HG--
extra : convert_revision : 3010d732f67e42a368722f6aa81b5263e0b1fdf9
2009-02-18 01:10:07 +01:00
Juan RP
3b18195a6a Change code to compile with -Wall -Wextra.
--HG--
extra : convert_revision : 992e1515458c6ee36cd481d1ba0ff8febf892d12
2009-02-18 01:07:51 +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
a2e9f7de29 xbps-pkgdb: check for empty strings passed to getpkg{name,version}.
--HG--
extra : convert_revision : adc73449ed57cd4628fbba91c91372d05db4e594
2009-02-17 23:29:13 +01:00
Juan RP
3d308188b7 xbps-pkgdb: add 'getpkgname' and 'getpkgversion' actions.
--HG--
extra : convert_revision : e931f3527b501d6153348b503b3213064e55c286
2009-02-17 13:57:51 +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
fb998feacf xbps-bin: add -v flag, used when installing/removing currently.
--HG--
extra : convert_revision : d543b52213bf3d35b17ef29ff74a879bc4342cef
2009-02-17 00:08:03 +01:00
Juan RP
82a9667049 xbps-bin: return a proper error when dict == NULL && rv != ENOENT.
--HG--
extra : convert_revision : f51b4fcda1497cd9aa640cb3db48080806fe497a
2009-02-16 22:19:10 +01:00
Juan RP
e59520869b Use a common mk file for all bins, install bins stripped.
--HG--
extra : convert_revision : dd739bbc9c67b099ef690533e02bb3f40aa2dc8a
2009-02-16 18:03:03 +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
6b6162bb44 Added support for using noarch packages.
--HG--
extra : convert_revision : a96166ddecb6efe65d35283f25e06a944cc4a038
2009-02-16 00:39:41 +01:00
Juan RP
746d59a9dd Some improvements for installation of binary packages.
* If any dep of a package cannot be found in the repository pool,
  show it on xbps-bin.

* Add the automatic-install boolean obj into pkg's dictionary
  on regpkgdb.plist, this will be used to implemented something
  like "apt-get autoremove".

--HG--
extra : convert_revision : 666e2fa666ac94140159896e28b445e88e8afb7a
2009-02-15 20:23:23 +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
Juan RP
3084354cec Fix previous.
--HG--
extra : convert_revision : a8073bfa4782f6c6a3e2afe760b184598f268807
2009-02-14 03:57:29 +01:00
Juan RP
b55346ae64 Show an informative error if binpkg cannot be found in repos.
--HG--
extra : convert_revision : 0c1e639cb598b19d258c1e1413dd1cb5930c4c61
2009-02-14 03:25:55 +01:00
Juan RP
83ed100fcf Use xbps_callback_array_iter_in_repolist() and removed dup code.
--HG--
extra : convert_revision : 7eb9c1b3df3fc7fde2ff61ac0cce1d635c3fef18
2009-02-14 02:26:11 +01:00
Juan RP
3c7b8186e6 Fix binpkg installation with multiple repositories.
New changes include a modified algorithm of the previous one, which
finally does not fail even with multiple repos, YAY!

Fixed some leaks as well, thanks to valgrind.

--HG--
extra : convert_revision : 3cffe1e9e9e9f7abf225ca3c6643377fc12a94bd
2009-02-14 01:37:12 +01:00
Juan RP
d420d00081 xbps_unregister_repository: return ENOENT if not found, not ENODEV.
--HG--
extra : convert_revision : c1be34bc1840ac351e8e2d301e2c71d247f0ea9c
2009-02-13 00:18:28 +01:00
Juan RP
c9d4ea5527 xbps-pkgdb: use EXIT_FAILURE.
--HG--
extra : convert_revision : 0a41128bdf379ca2dfdf1be7053a42e85fddc81a
2009-02-12 18:59:43 +01:00
Juan RP
939a63036e Added support to keep track of reverse depends on installed packages.
--HG--
extra : convert_revision : 9e3e46f726ef28843dc52b95ce818637c2a18de5
2009-02-10 02:52:12 +01:00
Juan RP
126928ca8d Merge branch 'master' of ssh://xtraeme@repo.or.cz/srv/git/xbps
Conflicts:
	lib/depends.c

--HG--
extra : convert_revision : 568341c7637aa537838880da03bd4dda819902ea
2009-02-09 16:09:39 +01:00
Juan RP
2ff54fadeb xbps-src: ignore pkgs with unexistent destdir in 'build-pkg all'.
--HG--
extra : convert_revision : 7fe1a6d09fb90bed64b93f7b589641a34036511a
2009-02-09 03:52:08 +01:00
Juan RP
4a4f70b005 xbps-src: add -u flag, if used with fetch update $checksum in tmpl file.
--HG--
extra : convert_revision : a11fe9147498fb4a60ecb2633493d2d4789c288d
2009-02-09 01:01:14 +01:00
Juan RP
bb6355fe12 Allow installing/removing binpkgs as non-root.
--HG--
extra : convert_revision : 3781ef0a422530623cf64f45f87948e00d7e50e8
2009-02-07 18:05:40 +01:00
Juan RP
7e48132dde Fix some stuff committed in previous.
--HG--
extra : convert_revision : a0daf5c9d6bf623d3a35c5e2195cc7adaa3ed753
2009-02-07 13:30:02 +01:00
Juan RP
61f0b09698 New dependency/install/unpack WIP code.
This implementation will be faster and resolv the dependency chain
correctly taking into account indirect/direct deps and priority.

--HG--
extra : convert_revision : cc4ec186f06f944fa8825b176344c4d612658f85
2009-02-07 13:27:24 +01:00
Juan RP
dfb7e2a687 xbps-repo: there's no need to prefix local funcs with xbps_ anymore.
--HG--
extra : convert_revision : d8a2402697ca5709c5ca4e94d94ab4df6b97c818
2009-02-05 15:31:54 +01:00
Juan RP
c86be9931b Install by default xbps.conf into $(PREFIX)/etc and use it.
--HG--
extra : convert_revision : d6550a3d9e6093cb1ec789715e2b1107b9bb59bd
2009-02-05 15:21:33 +01:00
Juan RP
7740958643 Split repo commands into the new xbps-repo bin.
- Remove lib/info.c that doesn't belong in the lib and add it into the
  bins.
- Every binary now uses its own directory on bin/.

This is in preparation for future changes for correct behaviour of
the library and binaries.

--HG--
extra : convert_revision : 880d16378bf940c4f5478de0362afe883cd5fd2c
2009-02-05 14:46:09 +01:00
Juan RP
fe8ea8c21c Check that pkg is installed before removing.
--HG--
extra : convert_revision : 4ea85e367ecbc0d39dcba1c8ee63392f0e1177f7
2009-02-03 16:51:42 +01:00
Juan RP
4a9125364a xbps-bin: added WIP remove target.
--HG--
extra : convert_revision : 71314f7183384094223cf10bf16ff704ca084883
2009-02-03 03:18:00 +01:00
Juan RP
bc9bf83f0a xbps-src: update PATH with default PREFIX set by make.
--HG--
extra : convert_revision : 235ae5d28d075ffda87734224a4edf724799e2f1
2009-01-14 16:50:30 +01:00
Juan RP
68d2bbe8fb xbps-bin: add missing newline.
--HG--
extra : convert_revision : e75a20206dc19000360df659814b9c2d6f7769d1
2008-12-29 16:02:35 +01:00
Juan RP
15e15465c8 bin: use EXIT_SUCCESS and EXIT_FAILURE.
--HG--
extra : convert_revision : 730a4f09ae67423e4a34b1c7e9d020998cc2288c
2008-12-29 15:56:40 +01:00
Juan RP
e5774555cf xbps-bin: simplify sanitize_localpath().
--HG--
extra : convert_revision : 223334822b80c6b11e63f1a34e7bfadb9115d5b9
2008-12-27 22:56:47 +01:00
Juan RP
926b1dfa4a Improve binpkg priorities, dynamically allocate mem, etc.
--HG--
extra : convert_revision : 479011aba6e9da4e5662137381e04042e762d428
2008-12-27 22:19:04 +01:00
Juan RP
74e575f984 xbps-pkgdb: fix argv in sanitize-plist target.
--HG--
extra : convert_revision : 6e475309733ddf37970ff0506b15714a6996b652
2008-12-27 16:19:11 +01:00
Juan RP
b2abe59c52 Added support to specify a root directory for xbps.
All xbps metadata files will go into <rootdir>/var/cache/xbps
and package data will go into <rootdir>/<data>.

--HG--
extra : convert_revision : 37007ac4f9b99b31465612a58749713b3164139b
2008-12-27 12:56:51 +01:00
Juan RP
7be91b93b9 xbps-src: remove unneeded stuff.
--HG--
extra : convert_revision : 38d5fc74271e041cd9b4e529960ceeb482c6b51e
2008-12-27 08:51:40 +01:00
Juan RP
3b702f33aa xbps-pkgdb: check that plist dict is there in version target.
--HG--
extra : convert_revision : 926363d195d0e4ce4fcd2e715823f43fd839561c
2008-12-27 08:43:13 +01:00
Juan RP
cbe0046537 xbps-bin: add the 'list' target, and remove it from xbps-pkgdb.
--HG--
extra : convert_revision : 411b27525082c2ff7a766490b00056cc7c78d78f
2008-12-26 11:30:19 +01:00
Juan RP
d309f54ff1 Register binary package if unpacking was successful.
--HG--
extra : convert_revision : ac984d640acb340e3a8db2ac07e41d15b1eea89e
2008-12-26 10:13:03 +01:00
Juan RP
91f7df59cd Support for installing pkgs from multiple repositories.
--HG--
extra : convert_revision : fc8a430e71d202aa9e7560b921669f62f1947ae1
2008-12-26 04:36:51 +01:00
Juan RP
9a0c175c18 Use the repo list to find binary packages.
--HG--
extra : convert_revision : c35e25604d0e417115cd1c30d77d23fee3c39f92
2008-12-24 12:34:04 +01:00
Juan RP
4101025318 Working dependency handling for binary packages.
--HG--
extra : convert_revision : d0ff56b524efba53b11b7635972b03feaaeb889a
2008-12-24 10:58:19 +01:00
Juan RP
fa3b59b246 Another checkpoint for installing binary packages.
At least now dependencies are tracked, not sure it will be
enough for real life :-)

--HG--
extra : convert_revision : 962de22d515efa5599c148f918c14d32b5d9496d
2008-12-24 07:20:19 +01:00
Juan RP
0c0e796fc5 Fix some leaks detected by valgrind.
--HG--
extra : convert_revision : 15f7c0f673c4f46e36de82f5e55c7bcd370093e9
2008-12-23 13:05:01 +01:00
Juan RP
26c054d773 Checkpoint for installation of binary packages.
--HG--
extra : convert_revision : 0bc55ebae04b2e1e5ab20feca786b649fc2e0335
2008-12-23 12:28:21 +01:00
Juan RP
546cc0ccc1 Use %ju to printf uint64_t's. Fixes building on i386.
--HG--
extra : convert_revision : c910dcedf00a095ebbe001cb78d7f8fa2ef19035
2008-12-22 15:21:29 +01:00