41 lines
1.1 KiB
Diff
41 lines
1.1 KiB
Diff
From 1774d17e404b43a48de341aad7afb569937b9e86 Mon Sep 17 00:00:00 2001
|
|
From: Juan RP <xtraeme@voidlinux.eu>
|
|
Date: Fri, 5 Jun 2015 08:29:05 +0200
|
|
Subject: [PATCH] Keep /usr/sbin if found as obsolete, it's a symlink in void.
|
|
|
|
---
|
|
NEWS | 3 +++
|
|
lib/package_find_obsoletes.c | 1 +
|
|
lib/package_remove.c | 3 ++-
|
|
3 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
--- lib/package_find_obsoletes.c
|
|
+++ lib/package_find_obsoletes.c
|
|
@@ -80,6 +80,7 @@ xbps_find_pkg_obsoletes(struct xbps_handle *xhp,
|
|
const char *basesymlinks[] = {
|
|
"./bin",
|
|
"./sbin",
|
|
+ "./usr/sbin",
|
|
"./lib",
|
|
"./lib32",
|
|
"./lib64",
|
|
--- lib/package_remove.c
|
|
+++ lib/package_remove.c
|
|
@@ -1,5 +1,5 @@
|
|
/*-
|
|
- * Copyright (c) 2009-2014 Juan Romero Pardines.
|
|
+ * Copyright (c) 2009-2015 Juan Romero Pardines.
|
|
* All rights reserved.
|
|
*
|
|
* 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[] = {
|
|
"/bin",
|
|
"/sbin",
|
|
+ "/usr/sbin",
|
|
"/lib",
|
|
"/lib32",
|
|
"/lib64",
|
|
--
|
|
2.4.2
|
|
|