Commit Graph

16 Commits

Author SHA1 Message Date
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 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 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 5722c8aca1 Replace some if conditionals with asserts where appropiate.
--HG--
extra : convert_revision : 991989e77b31d84f9aab2e27a5366c18a78407ae
2008-12-21 01:50:19 +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 b24db2af76 plist.c: fix showing pkginfo with multiple repos.
--HG--
extra : convert_revision : 6c4d3b17e5fd6ea6d08ba9d697f2557ef11d8b37
2008-12-20 07:50:58 +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 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 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 894c0903c6 Rename some C utils.
--HG--
extra : convert_revision : 35b27fcbc85ad9f6466cef02759cc0142e6bfafd
2008-12-20 03:07:46 +01:00
Renamed from utils/plist_utils.c (Browse further)