Commit graph

841 commits

Author SHA1 Message Date
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
Juan RP
894c0903c6 Rename some C utils.
--HG--
extra : convert_revision : 35b27fcbc85ad9f6466cef02759cc0142e6bfafd
2008-12-20 03:07:46 +01:00
Juan RP
e6e047bc6b plist_utils: introduce xbps_show_pkg_info().
--HG--
extra : convert_revision : b45e5817be93692280218ceb89133671ee3b1172
2008-12-20 03:02:01 +01:00
Juan RP
6a779c98d5 Add some more stuff to .gitignore.
--HG--
extra : convert_revision : e18fb568b2bac5085c59a4538ba60d8da83bfd94
2008-12-20 01:45:47 +01:00
Juan RP
e992ee5c83 Introduce xbps_callback_array_iter_in_dict().
--HG--
extra : convert_revision : e0696de04df785d99ae1748a2d972a74e04c774f
2008-12-20 00:55:48 +01:00
Juan RP
742ae607c4 xbps-src: fix indentation in usage.
--HG--
extra : convert_revision : 3e87062aa64a995f759d357240675bf15bcec8db
2008-12-20 00:12:34 +01:00
Juan RP
d90419f36b xbps-src: implement support to specify repo path in genindex.
You can use it now like:

 $ xbps-src.sh genindex ~/myrepo

It will use XBPS_PACKAGESDIR if no specified.

--HG--
extra : convert_revision : 7d1b17dd77b89387a5f568071b58478e68c4051d
2008-12-20 00:10:06 +01:00
Juan RP
6542132999 Simplify xbps_find_pkg_in_dict().
--HG--
extra : convert_revision : 345646a40ce381402647c21033d711e77d8ce7a9
2008-12-19 23:43:52 +01:00
Juan RP
edc4a572bb xbps-bin: simplify previous.
--HG--
extra : convert_revision : 30d4433b86c4a60fe56a98cb011f3534273818b3
2008-12-19 23:36:30 +01:00
Juan RP
db0484ae6e xbps-bin: add new action "repo-list".
--HG--
extra : convert_revision : e0d5fce9503c6544e8ceec56864560b170c0e8c8
2008-12-19 23:10:24 +01:00
Juan RP
045e10c94e genindex: added "filename-sha256" obj in pkgdict.
--HG--
extra : convert_revision : d443575b681c408bb357027fcc46f1e19022bd87
2008-12-19 21:44:00 +01:00
Juan RP
6a16f41237 Add WIP xbps-bin utility to handle binpkgs/repos.
--HG--
extra : convert_revision : 8bfa759a11b09cfe1ebc45f9357e6e942552ed32
2008-12-19 10:31:53 +01:00
Juan RP
340557d272 genindex: cosmetic tweak.
--HG--
extra : convert_revision : 69ede0d834e86c6dd7c2d99ccc928bcbb097ad8e
2008-12-19 08:32:55 +01:00
Juan RP
a4c1f17a56 Extend the pkgindex plist file with some new objects.
--HG--
extra : convert_revision : ee311e4c0821a43de3dcc464a91550f7b1917024
2008-12-19 06:22:03 +01:00
Juan RP
f07233018b genindex: improve some comments.
--HG--
extra : convert_revision : 7da94c9254a521dba13df51a53fd183d48470929
2008-12-19 05:10:30 +01:00
Juan RP
63059b0266 xbps-digest doesn't need to be linked to proplib.
--HG--
extra : convert_revision : 6b99784c1c0a0669da5fe8ece36eb5bc434cbc61
2008-12-19 04:46:10 +01:00
Juan RP
b4662e94c2 Add the xbps bins.
--HG--
extra : convert_revision : bbe02ca4cb277550c105b4bd3c693b1c5a003692
2008-12-19 04:27:08 +01:00
Juan RP
48b2f033da A bit of reorganization in C/shell code.
With these changes:
 - Added 'sanitize-plist' action to xbps-pkgdb. It takes a plist
   file as argument and writes another one "sanitized" by proplib.
   Use it to sanitize the pkgindex plist file.
 - Split xbps-pkgdb functions to be shared by other files.
 - Split xbps-digest functions to be shared by other files.
 - Rename the plist file to register/unregister installed pkgs to
   regpkgdb.plist, and related stuff in shell scripts.

--HG--
extra : convert_revision : 37731b04c6b41aebac629dfa06106175b9b5e59c
2008-12-19 04:18:49 +01:00
Juan RP
5f69948167 Remove utils from .gitignore!
--HG--
extra : convert_revision : 2a045a6632b6cd05d3e9b0481deafba648d4b1b4
2008-12-19 04:15:29 +01:00
Juan RP
b0089e7284 binpkg: replace invalid chars in $maintainer.
--HG--
extra : convert_revision : 31669a428ad626a7c97d533d057ca0be1d265c31
2008-12-19 03:24:49 +01:00
Juan RP
071a1148c5 Fix another stupid error in genindex.
--HG--
extra : convert_revision : 18b91a31fc42ec374a5f51d4c32fcc85d1615738
2008-12-19 03:06:43 +01:00
Juan RP
931731bb2c binpkg.sh: fix some typos that really fucked me!
--HG--
extra : convert_revision : ffceafd696ab31e057ebfcab1e565132dd69aae9
2008-12-19 03:01:11 +01:00
Juan RP
a17ba41e17 binpkg-genindex.sh: be sure there are binpkgs before starting.
--HG--
extra : convert_revision : 451c8924fdd71dfc020cf5a4f068d564b66de981
2008-12-18 11:40:56 +01:00
Juan RP
f19afb5fe0 chroot.sh: improve error messages.
--HG--
extra : convert_revision : a0d0b166ca331bd8af9cdf1c54459b09156ab978
2008-12-18 11:40:43 +01:00
Juan RP
d9fb96533f Rename xbps.sh to xbps-src.sh.
In preparation for the utility that will handle binary packages.

--HG--
extra : convert_revision : c67f42bccad28f1b5313ae0e1739979a477fd2f1
2008-12-18 11:07:33 +01:00
Juan RP
ff4f1346c2 stow_funcs.sh: don't error with metapkgs while removing.
--HG--
extra : convert_revision : 04d1f2fe6e9bc962f62b93f9b4bd6d566c759e07
2008-12-18 09:50:19 +01:00
Juan RP
ae39fc9d34 xbps-base-chroot: add missing rundeps.
--HG--
extra : convert_revision : 4da66d00b3e6b179c372ffe569b226ba925a8976
2008-12-18 09:40:15 +01:00
Juan RP
6a0386e2b9 git: update to 1.6.0.5 and add missing rundeps.
--HG--
extra : convert_revision : 3495f935f4bfedf616a021db0fcd0225d7f44d64
2008-12-18 08:56:05 +01:00
Juan RP
6626a77bd7 Use -w rather than -O for write permission.
--HG--
extra : convert_revision : 20cbb0fff9d9e2fb21a174c606db84bfc9ffba76
2008-12-18 08:17:46 +01:00