xbps-rindex: fix #25 (--sign unnecessarily regenerates <arch>-repodata).
This commit is contained in:
parent
7c57918950
commit
e86f9def03
2
NEWS
2
NEWS
@ -1,5 +1,7 @@
|
||||
xbps-0.28 (2014-??-??):
|
||||
|
||||
* Fixed issue #25: https://github.com/voidlinux/xbps/issues/25
|
||||
|
||||
* Fixed issue #24: https://github.com/voidlinux/xbps/issues/24
|
||||
|
||||
xbps-0.27 (2013-11-29):
|
||||
|
@ -188,7 +188,16 @@ sign_repo(struct xbps_handle *xhp, const char *repodir,
|
||||
meta = xbps_dictionary_create();
|
||||
xbps_dictionary_set_cstring_nocopy(meta, "signature-by", signedby);
|
||||
xbps_dictionary_set_cstring_nocopy(meta, "signature-type", "rsa");
|
||||
/*
|
||||
* If the signature in repo has not changed do not generate the
|
||||
* repodata file again.
|
||||
*/
|
||||
data = xbps_data_create_data_nocopy(sig, siglen);
|
||||
if (xbps_data_equals_data(data, sig, siglen)) {
|
||||
fprintf(stderr, "Not signing again, matched signature found.\n");
|
||||
rv = 0;
|
||||
goto out;
|
||||
}
|
||||
xbps_dictionary_set(meta, "signature", data);
|
||||
|
||||
buf = pubkey_from_privkey(rsa);
|
||||
|
Loading…
Reference in New Issue
Block a user