Module Name:    src
Committed By:   njoly
Date:           Tue Nov 30 14:35:39 UTC 2010

Modified Files:
        src/usr.sbin/postinstall: postinstall

Log Message:
Adjust obsolete_libs to handle both the libraries (unchanged) and the
corresponding .debug files if exists.


To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/usr.sbin/postinstall/postinstall

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.110 src/usr.sbin/postinstall/postinstall:1.111
--- src/usr.sbin/postinstall/postinstall:1.110	Sun Nov 21 22:50:37 2010
+++ src/usr.sbin/postinstall/postinstall	Tue Nov 30 14:35:38 2010
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.110 2010/11/21 22:50:37 christos Exp $
+# $NetBSD: postinstall,v 1.111 2010/11/30 14:35:38 njoly Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -482,6 +482,14 @@
 	[ $# -eq 1 ] || err 3 "USAGE: obsolete_libs dir"
 	dir="$1"
 
+	_obsolete_libs "${dir}"
+	_obsolete_libs "/usr/libdata/debug/${dir}"
+}
+
+_obsolete_libs()
+{ 
+	dir="$1"
+
 	(
 
 	if [ ! -e "${DEST_DIR}/${dir}" ]
@@ -522,7 +530,7 @@
 	}
 }
 
-/^lib.*\.so\.[0-9]+\.[0-9]+(\.[0-9]+)?$/ {
+/^lib.*\.so\.[0-9]+\.[0-9]+(\.[0-9]+)?(\.debug)?$/ {
 	if (AllLibs)
 		checklib(minor, $0, "^lib.*\\.so\\.")
 	else

Reply via email to