Keep /usr/sbin if found as obsolete, it's a symlink in void.

This commit is contained in:
Juan RP 2015-06-05 08:29:05 +02:00
parent d86cece411
commit 1774d17e40
3 changed files with 6 additions and 1 deletions

3
NEWS
View File

@ -1,5 +1,8 @@
xbps-0.46 (???): xbps-0.46 (???):
* /usr/sbin is now a symlink in void, don't consider it as obsolete and never
remove it even if it was detected as obsolete.
* xbps-rindex(1): use `-s, --sign` to initialize the repository archive * xbps-rindex(1): use `-s, --sign` to initialize the repository archive
with the required metadata to allow signed packages. Added `-S, --sign-pkg` with the required metadata to allow signed packages. Added `-S, --sign-pkg`
to sign a specific package archive. This allows to sign a specific package, to sign a specific package archive. This allows to sign a specific package,

View File

@ -80,6 +80,7 @@ xbps_find_pkg_obsoletes(struct xbps_handle *xhp,
const char *basesymlinks[] = { const char *basesymlinks[] = {
"./bin", "./bin",
"./sbin", "./sbin",
"./usr/sbin",
"./lib", "./lib",
"./lib32", "./lib32",
"./lib64", "./lib64",

View File

@ -1,5 +1,5 @@
/*- /*-
* Copyright (c) 2009-2014 Juan Romero Pardines. * Copyright (c) 2009-2015 Juan Romero Pardines.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -106,6 +106,7 @@ remove_pkg_files(struct xbps_handle *xhp,
const char *basesymlinks[] = { const char *basesymlinks[] = {
"/bin", "/bin",
"/sbin", "/sbin",
"/usr/sbin",
"/lib", "/lib",
"/lib32", "/lib32",
"/lib64", "/lib64",