xbps-install(8): -n,--dry-run option does not need pkgdb write perms anymore.
This commit is contained in:
parent
1fb3c501ed
commit
1d74c1c144
4
NEWS
4
NEWS
@ -1,5 +1,9 @@
|
|||||||
xbps-0.36 (???):
|
xbps-0.36 (???):
|
||||||
|
|
||||||
|
* xbps-install(8): the -n,--dry-run option does not acquire the pkgdb file lock
|
||||||
|
anymore, so that any user can use this mode even without write permission to
|
||||||
|
the target pkgdb.
|
||||||
|
|
||||||
* xbps-query(8): fix a segfault with '-vL' for local unsigned repositories.
|
* xbps-query(8): fix a segfault with '-vL' for local unsigned repositories.
|
||||||
|
|
||||||
* xbps-create(8): new option --compression to specify a compression format;
|
* xbps-create(8): new option --compression to specify a compression format;
|
||||||
|
@ -215,7 +215,7 @@ main(int argc, char **argv)
|
|||||||
if (sync && !update && (argc == optind))
|
if (sync && !update && (argc == optind))
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
if ((rv = xbps_pkgdb_lock(&xh)) != 0) {
|
if (!drun && (rv = xbps_pkgdb_lock(&xh)) != 0) {
|
||||||
fprintf(stderr, "Failed to lock the pkgdb: %s\n", strerror(rv));
|
fprintf(stderr, "Failed to lock the pkgdb: %s\n", strerror(rv));
|
||||||
exit(rv);
|
exit(rv);
|
||||||
}
|
}
|
||||||
@ -245,6 +245,8 @@ main(int argc, char **argv)
|
|||||||
rv = exec_transaction(&xh, maxcols, yes, drun);
|
rv = exec_transaction(&xh, maxcols, yes, drun);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!drun)
|
||||||
xbps_pkgdb_unlock(&xh);
|
xbps_pkgdb_unlock(&xh);
|
||||||
|
|
||||||
exit(rv);
|
exit(rv);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user