Commit Graph

140319 Commits

Author SHA1 Message Date
Juan RP 9a10b636cc xbps-cmpver: fix usage.
--HG--
extra : convert_revision : 450fc45a76cb4dc24f3bf4c8f4cba747ed05d653
2008-12-22 02:47:36 +01:00
Juan RP 77debbc7c4 README: update for recent changes.
--HG--
extra : convert_revision : 38ce28d007a36e20b3a71764868f7b37776ee9b3
2008-12-22 02:27:51 +01:00
Juan RP cde9dddfcf Move xbps-src.sh into bin/.
--HG--
extra : convert_revision : bb6fba26702ec51514b31abd1eb5f8d7431b30b6
2008-12-22 02:26:28 +01:00
Juan RP db45574f24 Add /usr/local/sbin into PATH.
--HG--
extra : convert_revision : c5315db73a191482858c52d5dc54f3e264ada219
2008-12-22 02:23:52 +01:00
Juan RP 6ee35486bf To use xbps now 'make and make install' is required.
--HG--
extra : convert_revision : 976738f26daf1ccd2101ca2325e1e517d98e71cb
2008-12-22 02:14:40 +01:00
Juan RP 9f7bfc772a stow_func.sh::unstow_pkg(): dont play with flist in metapkgs.
--HG--
extra : convert_revision : be2fa0ab535da930ce86824e9fceef786e55a541
2008-12-22 00:51:34 +01:00
Juan RP d7c720ef7d Move xbps.conf to the new etc dir.
--HG--
extra : convert_revision : 84988fe710423c1610c1a3aa79bd38eee884d4c0
2008-12-22 00:40:36 +01:00
Juan RP f2a77f5e0e xbps-pkgdb: fix crash if db file unexistent in 'list' target.
--HG--
extra : convert_revision : a42e5a7eda63a0d121dd7f15683220c84d58b620
2008-12-22 00:37:42 +01:00
Juan RP 6fbb8e0316 xbps_search_string_in_pkgs(): remove unneeded assert.
--HG--
extra : convert_revision : 8cf98bcf0ae83958f2f31d951465333930e32f2e
2008-12-22 00:21:11 +01:00
Juan RP bd317f17ee xbps_search_string_in_pkgs(): pass "arg" directly.
--HG--
extra : convert_revision : d1345ddf585304ec1617386b91aa827209362442
2008-12-22 00:17:20 +01:00
Juan RP 4a88e000e6 Update README with last changes.
--HG--
extra : convert_revision : b0ed200f01b731aee831d0d488c4900ac9804703
2008-12-22 00:02:13 +01:00
Juan RP e7cf222ac9 Reorganize the tree splitting stuff on its own dir.
--HG--
extra : convert_revision : 87473fb499c42deaf0285f5559dc1cd8d67ab436
2008-12-21 23:57:02 +01:00
Juan RP 9019592d9d Add libxbps.so* into .gitignore.
--HG--
extra : convert_revision : 3dfc7f434bddffa06fc74f06b27cc9489aea0ada
2008-12-21 22:07:07 +01:00
Juan RP 3e7ef4fc9b utils/Makefile: improve previous commit.
--HG--
extra : convert_revision : c7cf3b365d26484d1451d478c9851beac86bb256
2008-12-21 22:04:16 +01:00
Juan RP 4053dc4789 utils/Makefile: build the libxbps shared lib.
--HG--
extra : convert_revision : 8584a398b2ba51e841744c25be8a8b16e0736d7e
2008-12-21 22:00:33 +01:00
Juan RP d14b2332b5 Simplify utils/Makefile even more!
--HG--
extra : convert_revision : 0d1855a743e64c74ae070424a2f98cd7d87813d4
2008-12-21 10:52:38 +01:00
Juan RP 8d66cb9a57 Simplify utils/Makefile.
--HG--
extra : convert_revision : 055106d402821281e64108257bd5d0e5e393a1b4
2008-12-21 10:40:04 +01:00
Juan RP ddc026a5ff stow_funcs.sh: fix previous for root(!).
--HG--
extra : convert_revision : 618c758ee199429cdc67eb66f9fb6fa2d7972f94
2008-12-21 09:16:55 +01:00
Juan RP b80643802a stow_funcs.sh: check for rw perms in {dest,master}dir.
--HG--
extra : convert_revision : fa9d0464480adef1ffd1e14c5a53cd1b96b5acd8
2008-12-21 09:13:12 +01:00
Juan RP cf4103ec73 xbps-pkgdb: use strerror(errno) in more places.
--HG--
extra : convert_revision : 44bf0df97a1f27a56067f36a5669c9ee836977ed
2008-12-21 09:12:51 +01:00
Juan RP c7415fa6c4 xbps-pkgdb: use write_plist_file() one more time.
--HG--
extra : convert_revision : 2fb3b77d82f780da943ef0505a09326c428009c7
2008-12-21 09:00:55 +01:00
Juan RP 592e9eca89 Use more appropiate types in loops to avoid future overflows.
--HG--
extra : convert_revision : 5376d21941333e5baa95cb4ee75dfe49ada351c6
2008-12-21 08:51:18 +01:00
Juan RP 120180f89d xbps-pkgdb: use a common func to remove a pkgdict from a plist file.
--HG--
extra : convert_revision : 1d86cdca194aea6fb5ebaff0ac60c205788c63de
2008-12-21 08:43:57 +01:00
Juan RP d534631f62 Better metadata printing for the 'show' target.
All objects are sorted to be comparable to 'apt-cache show'
output, like:

$ ./xbps-bin show openssl
Repository: /storage/xbps/binpkgs
Package: openssl
Installed size: 10265289 bytes
Maintainer: Juan RP [xtraeme@gmail.com]
Architecture: x86_64
Version: 0.9.8i
Filename: openssl-0.9.8i.x86_64.xbps
SHA256: 33204337e944bdcca285af5540cee39e60cdcbc4bc99cb5da32040793844eab5
Dependencies:
	glibc-2.8 zlib-1.2.3

Configuration files:
	/etc/ssl/openssl.cnf

Permanent directories:
	/etc/ssl

Description: Secure Socket Layer and cryptographic library
The OpenSSL Project is a collaborative effort to develop a robust,
commercial-grade, full-featured, and Open Source toolkit implementing
the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1)
protocols as well as a full-strength general purpose cryptography
library.
$

--HG--
extra : convert_revision : 77e59abbd586e495288c3e0805d7865269846bd8
2008-12-21 07:22:44 +01:00
Juan RP 017b192a85 xbps-pkgdb: remove unneeded stuff from unregister_pkg().
--HG--
extra : convert_revision : 2482d7b37d913657fc274b4546e0ac995ed2fda4
2008-12-21 06:15:56 +01:00
Juan RP f2b90d42aa xbps_api.h: disable assert() with NDEBUG def.
--HG--
extra : convert_revision : 19bc838cc3d6a56ee1c80d79b2546467fa84e6a5
2008-12-21 06:09:10 +01:00
Juan RP 8523e208fe Mention some new recent stuff on BINPKG_REPOSITORY.
--HG--
extra : convert_revision : 91043c7be9c32ef9a7d1eb8e98518d90c162fe95
2008-12-21 05:41:17 +01:00
Juan RP 57d202e971 plist.c: better printing for the 'search' target.
--HG--
extra : convert_revision : 629d8386903314b204d665b897f9821c396985df
2008-12-21 05:36:56 +01:00
Juan RP 169e38313d xbps-bin: implemented "search" target.
It will look for the specified string in all repositories
registered and will report "$pkgname-$version - $short_desc":

juan@sasha:~/xbps/utils$ ./xbps-bin search kernel
From /home/juan/repo2 repository ...
From /home/juan/repo3 repository ...
From /storage/xbps/binpkgs repository ...
	kernel-headers-2.6.27.9 - The Linux kernel headers
	module-init-tools-3.5 - Tools for managing kernel modules
juan@sasha:~/xbps/utils$

--HG--
extra : convert_revision : a589c4c641d033e6030f121704a55c1c94c22f0e
2008-12-21 05:32:13 +01:00
Juan RP 716d9b9e7c xbps-{bin,pkgdb}: use strcasecmp() to parse argv.
--HG--
extra : convert_revision : deb4624c3f6d031925f3fcea0461d68d37703f89
2008-12-21 03:45:39 +01:00
Juan RP e3a5509442 xbps-bin: handle a case where sanitize_localpath() failed.
--HG--
extra : convert_revision : f762239729644494ea9305079d0386b807ecedfc
2008-12-21 03:24:52 +01:00
Juan RP 2b70f95033 xbps-bin: improve an error message.
--HG--
extra : convert_revision : 320c701425920003c1eaf498515c32f5d46c57aa
2008-12-21 02:20:21 +01:00
Juan RP 9b3481a3b6 xbps-pkgdb: play safe with strncpy().
--HG--
extra : convert_revision : 3562b4d657e4c10fdf734d149eec0bd6f36793f8
2008-12-21 02:11:41 +01:00
Juan RP 5722c8aca1 Replace some if conditionals with asserts where appropiate.
--HG--
extra : convert_revision : 991989e77b31d84f9aab2e27a5366c18a78407ae
2008-12-21 01:50:19 +01:00
Juan RP d3b02d6c95 utils/Makefile: remove all bins in the clean target.
--HG--
extra : convert_revision : 622edee89b9e3a72b17eae85431be0cead4253ff
2008-12-21 00:53:21 +01:00
Juan RP 56f1c09da8 xbps-bin: implemented 'repo-rm' target.
Also I changed the code to sanitize passed path, and make
the repo targets consistent with accepting the dir that contains
the packages.

--HG--
extra : convert_revision : 877ce4b1a6ad0d72e4a81094bbfe00ddea3baac3
2008-12-20 23:55:15 +01:00
Juan RP 92b9d7d8ca Add an install target to Makefiles.
--HG--
extra : convert_revision : 4c2e5e60d95fc414980e148e407a97fa4eca9bfd
2008-12-20 11:04:12 +01:00
Juan RP fd999f1136 bash: readline is not needed! wtf.
--HG--
extra : convert_revision : c59fb2dd1b361f0a9e058c9cff35199c42501649
2008-12-20 09:23:30 +01:00
Juan RP 074f4dddeb xbps-pkgdb: fix the register target.
--HG--
extra : convert_revision : 4259cf00cd001d386a841200242d94cc18604c93
2008-12-20 08:13:18 +01:00
Juan RP b24db2af76 plist.c: fix showing pkginfo with multiple repos.
--HG--
extra : convert_revision : 6c4d3b17e5fd6ea6d08ba9d697f2557ef11d8b37
2008-12-20 07:50:58 +01:00
Juan RP 741f559536 plist.h: remove name arg from proto.
--HG--
extra : convert_revision : 5b0526d72d681bc636d1b944e9efe04e6c6b7a28
2008-12-20 06:31:01 +01:00
Juan RP fea830f2b4 xbps-bin: apply some indentation when printing array object values.
--HG--
extra : convert_revision : bdb070f76cafed9faf69b7cd3769edae0d96b05a
2008-12-20 06:27:16 +01:00
Juan RP c3c632e387 xbps-bin: implement full support for the 'show' target.
This will try to show the package information by looking in
all repositories registered. The first one that has the package
info wins.

--HG--
extra : convert_revision : 33b93fd115a765d696af76ca20c1669ef277cd35
2008-12-20 05:49:41 +01:00
Juan RP 6698f3a1ff Make xbps_callback_array_in_dict() return a bool.
The func cb accepted also returns a bool now.

--HG--
extra : convert_revision : 1adf9a54e111f5d7f3dd78a829c3cf680d15f769
2008-12-20 04:53:56 +01:00
Juan RP 835d4e7b7c Fixup xbps_register_repository().
--HG--
extra : convert_revision : 57fc23f8066038b2ff71ba580d3bd5c73616f079
2008-12-20 04:35:47 +01:00
Juan RP 57c8baf7d7 plist.h: fix some comments.
--HG--
extra : convert_revision : 31268f9d3a29b5a0bb55cfa897a7ff4b061a7e6a
2008-12-20 04:05:07 +01:00
Juan RP 256b562770 Make xbps_add_array_to_dict accept any object, not just arrays.
Thus it's now named xbps_add_obj_to_dict().

--HG--
extra : convert_revision : 81a53b615cd7578a2c99f40f9b8550e2ee7fa426
2008-12-20 03:55:09 +01:00
Juan RP 836bb96d9c utils/Makefile: use another target to strip bins.
--HG--
extra : convert_revision : e6535c674b457d95c3ee33c00193933a20116050
2008-12-20 03:54:28 +01:00
Juan RP 00e90663af Use a common key for all arrays of pkgdicts.
--HG--
extra : convert_revision : cab30e527b438afb266f4e6084af7c51357efd17
2008-12-20 03:45:35 +01:00
Juan RP 289709fe1b utils/Makefile: strip bins.
--HG--
extra : convert_revision : 9564aae74870e43e921b7d85265d68e40c273a2a
2008-12-20 03:10:34 +01:00