Commit Graph

1992 Commits

Author SHA1 Message Date
Juan RP
172c84040c xbps-rindex: fix clean mode while removing obsolete entries on index-files with updates. 2013-11-25 10:16:38 +01:00
Juan RP
3cbd3deafe doc/xbps_pkgdb_dictionary.dot: replace reqby obj with rundeps. 2013-11-24 09:02:09 +01:00
Juan RP
79bf795e1a lib/package_unpack.c: make clang stfu due to -Wmissing-field-initializers. 2013-11-19 10:39:46 +01:00
Juan RP
e1a3e44e2a configure: append {C{,XX,PP},LD}FLAGS after checking compilter features. 2013-11-18 19:54:38 +01:00
Juan RP
8d7c899d48 lib/package_unpack.c: initiliaze struct rather than memset. 2013-11-18 18:23:31 +01:00
Juan RP
74970f2e92 lib/download.c: xbps_fetch_file: remove unnecesary memset() calls. 2013-11-18 18:20:41 +01:00
Juan RP
febc673f1e lib/util_hash.c: xbps_file_hash: remove unnecessary memset() call. 2013-11-18 18:12:58 +01:00
Juan RP
ef67a79419 lib/repo_keys.c: remove unnecessary OpenSSL_add_all_xxx() calls. 2013-11-18 17:35:09 +01:00
Juan RP
17228eb12b xbps-query(8): do not print useless stuff with -vL. 2013-11-18 16:52:12 +01:00
Juan RP
8882b0215f Redo how the repository keys are stored.
- Repository keys are now stored in a new directory on metadir (/var/db/xbps):

	<metadir>/key>

- Repository keys are stored with the hex fingerprint of its RSA
  public key in a plist dictionary:

	<metadir>/keys/xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.plist

- Drop xbps-rkeys(8) and merge its functionality into xbps-install(8) and
  xbps-query(8).

- xbps-query(8) -vL now shows some more details of remote repositories:

 3134 http://localhost:8000 (RSA signed, verified)
      Signed-by: Void Linux
      4096 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d
   16 http://localhost:8000/nonfree (RSA signed, verified)
      Signed-by: Void Linux
      4096 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d

Bump XBPS_API_VERSION.
2013-11-18 16:05:46 +01:00
Juan RP
c9825feb29 util.c: add stricter checks for pkgver conformance (v2).
There was another case where it now was failing: "fs-utils-v1.00_1".

Previous code didn't take into account that a valid version might also
contain a non digit after '-'.

Added more tests to the testsuite to verify its correctness.
2013-11-17 12:25:02 +01:00
Juan RP
c44d7070a4 util.c: add stricter checks for pkgver conformance.
Make xbps_pkg_{name,version} return NULL if next character
after the last '-' character is not a digit, and if there's a digit
make sure that there exists a '_' character too.

Added more tests to the testsuite to catch this. With these changes
'python-e_dbus' is properly detected and validated.
2013-11-17 11:34:14 +01:00
Juan RP
d0380d5cd2 lib/package_remove.c: add a bit of debugging if pkg wasn't found in pkgdb. 2013-11-17 11:33:16 +01:00
Juan RP
44533f9f57 lib/package_unpack.c: compute unpack cb stats only once. 2013-11-15 10:36:31 +01:00
Juan RP
e03d49f6bf xbps-install: size required on disk == dlsize+instsize. 2013-11-15 10:29:07 +01:00
Juan RP
f991574228 README.md: update. 2013-11-14 16:24:25 +01:00
Juan RP
6d9bb47fba unpack: make sure to remove only on-disk files if file type does not match.
Added another ATF test-case to make sure it works properly.
2013-11-09 08:59:02 +01:00
Juan RP
efdb0eb5a4 lib/pubkey2fp.c: style tweak. 2013-11-08 12:28:01 +01:00
Juan RP
53ecaf9819 Remove xbps_print_hexfp() from API and move it xbps-rindex, where it belongs. 2013-11-08 09:12:29 +01:00
Juan RP
2952c69c7a Define NDEBUG for assert() if --enable-debug is not specified. 2013-11-08 09:11:47 +01:00
Juan RP
0909c81cdb xbps_pubkey2fp: simplify and eliminate the extra copy of returned data type. 2013-11-08 09:10:40 +01:00
Juan RP
89ab9a4b0c xbps_repo_key_import: check that returned hex fingerprint is not NULL. 2013-11-08 09:09:35 +01:00
Juan RP
b7d91b490c Move libxbps shell tests to libxbps/shell and remove unused test-shell.mk. 2013-11-06 11:52:02 +01:00
Juan RP
6952144d60 Simplify tests/xbps/xbps-rindex structure. 2013-11-06 11:11:00 +01:00
Juan RP
8f36f8e638 Make sure that configuration files are properly kept or unpacked.
Added two new test cases to verify it works as advertised.
2013-11-06 10:45:33 +01:00
Juan RP
41baf01cd1 NEWS: mention that issue #6 has been fixed. 2013-11-06 09:51:15 +01:00
Juan RP
987d374ea9 Added an ATF test-case for #6 (close #6; this has been fixed previously). 2013-11-06 09:37:38 +01:00
Juan RP
c1fafcd339 Fix #20 and added an ATF test-case. 2013-11-05 09:56:36 +01:00
Juan RP
10438e58f8 Merge branch '0.26.x' 2013-11-04 09:33:02 +01:00
Juan RP
89c62c626c xbps-rindex: [clean] the filesclean test now passes successfully. 2013-11-03 11:15:56 +01:00
Juan RP
c06115af9a issue18_test: pass optional 2nd arg "cleanup" to atf_test_case(). 2013-11-03 10:53:26 +01:00
Juan RP
a8bfc4e9f8 xbps-rindex: add more test-cases and merge issue19 into the generic clean_test. 2013-11-03 10:52:32 +01:00
Juan RP
3602774bc3 xbps-rindex: [clean] make sure to pass a valid repository url. 2013-11-03 10:16:58 +01:00
Juan RP
88100fa1e7 .gitignore: fix path to generated test files. 2013-11-03 10:15:02 +01:00
Juan RP
4d3a412d9e Reorganize tests and move all them under /usr/tests/xbps. 2013-11-03 09:30:57 +01:00
Juan RP
4e4e4a49d0 Added an ATF test-case for issue #19. 2013-11-02 11:44:54 +01:00
Juan RP
616d4420d2 xbps-rindex(8): fix #19. An ATF test-case will be imported later. 2013-11-02 11:34:55 +01:00
Juan RP
2b40d8ad54 issue18_test: use atf_check_equal() instead and cleanup stuff at the end. 2013-11-01 18:47:23 +01:00
Juan RP
c4a0568c08 Added an ATF test-case for issue #18 (in shell). 2013-11-01 18:35:25 +01:00
Juan RP
1fd164b88b NEWS: mention #18 has been fixed. 2013-11-01 18:09:41 +01:00
Juan RP
f09eab62cd Fix #18. An ATF test-case will be imported in a while. 2013-11-01 18:05:11 +01:00
Juan RP
59f4248218 Bump to 0.26.2. 2013-10-30 12:04:49 +01:00
Juan RP
b2e1075efa unpack: apply correctly file permissions to existent files.
Will be backported to the 0.26.x branch.
2013-10-30 12:04:26 +01:00
Juan RP
747f250202 unpack: apply correctly file permissions to existent files.
Will be backported to the 0.26.x branch.
2013-10-30 12:02:16 +01:00
Juan RP
0247b49f86 xbps_repo_key_import: ignore local repos. 2013-10-28 12:51:03 +01:00
Juan RP
f39f7ff2fa xbps-rkeys: print the error if pubkey cannot be imported. 2013-10-28 12:46:23 +01:00
Juan RP
3bb7168935 Merge branch '0.26.x' 2013-10-25 09:48:12 +02:00
Juan RP
43ba262976 NEWS: prepare for 0.26.1. 2013-10-25 09:46:26 +02:00
Juan RP
6d9f06ddbb configure: bump to 0.26.1. 2013-10-25 09:46:07 +02:00
Juan RP
1c56e2342c xbps-uhelper: added 'real-version' action.
- This prints to stdout the version of an installed "real" package,
  not virtual. The 'version' action can be used to match any "real" and
  "virtual" package instead.
- Drop strcasecmp() to check actions and use strcmp() instead.
2013-10-25 09:43:42 +02:00