Commit graph

8 commits

Author SHA1 Message Date
Juan RP
cf2015f692 xbps-pkgdb: add function to internalize plist file.
--HG--
extra : convert_revision : 0a303377d6c17b80eb9ff36b0309247a624c3e3e
2008-10-30 08:47:00 +01:00
Juan RP
35df6d0c6e Rewrite xbps-pkgdb to use an array of dictionaries per pkg.
That way we can make it extensible in future changes.
Now it looks like this:

<key>packages_installed</key>
<array>
	<dict>
		<key>pkgname</key>
		<string>dash</string>
		<key>short_desc</key>
		<string>POSIX-compliant Unix shell ...</string>
		<key>version</key>
		<string>0.5.4</string>
	</dict>
	...
</array>

xbps list should be faster than before if a lot of packages
are installed.

--HG--
extra : convert_revision : 816e3e73a4fc72fd8e61f3825757d92ad9d5b511
2008-10-30 06:40:11 +01:00
Juan RP
c467d31a66 Simplify check_installed_pkg to avoid calling xbps-pkgdb unnecessarily.
--HG--
extra : convert_revision : 6e0f6f96a65b346e2e2e3c3253e5469d5eed8ede
2008-10-29 22:05:29 +01:00
Juan RP
de6947e0c9 Misc tweaks to messages in xbps-pkgdb.
--HG--
extra : convert_revision : 33bac6965b2efc2d212a95d15114661bd8170255
2008-10-29 20:20:22 +01:00
Juan RP
2cb592e66e Remove bash specific features to not depend on it.
--HG--
extra : convert_revision : 0ff8eac00a603d8aae549a8bfa568bb710e4b0bf
2008-10-29 18:33:55 +01:00
Juan RP
5a0aac4fd2 Added some ANSI colors for messages, may be disabled.
With the -e flag those colors will be disabled. As bonus also
I removed blank lines in .xbps-filelist and other misc tweaks, fixes
I cannot remember now.

--HG--
extra : convert_revision : 5e481d0faa14518363eafc622633d645c335ed78
2008-10-29 03:20:14 +01:00
Juan RP
4179308606 Missed xbps-pkgdb.c in previous commit.
--HG--
extra : convert_revision : 5c064f4c4fb4352d0f50180a295b0b2f28f3a463
2008-10-28 08:01:05 +01:00
pancake
af3fe4c94c * Move xbps-* into utils/ directory
- Simplify Makefile rules

--HG--
extra : convert_revision : f24c98fa56d724772e7c5e9a21cf700e4085d6e2
2008-10-27 18:01:15 +01:00
Renamed from xbps-pkgdb/xbps-pkgdb.c (Browse further)