Subject: pkg/10056: pkg_delete -R produces spurious files
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: netbsd-bugs
Date: 05/06/2000 08:30:09
>Number:         10056
>Category:       pkg
>Synopsis:       pkg_delete -R produces spurious files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 06 08:31:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dan McMahill
>Release:        1.4.2<NetBSD-current source date>
>Organization:
	
>Environment:
	
System: NetBSD nbftp.isc.org 1.4.2_ALPHA NetBSD 1.4.2_ALPHA (NBFTP) #0: Sat Apr 1 10:53:52 PST 2000 explorer@kechara.flame.org:/raid0/OS/NetBSD/src-1-4/sys/arch/i386/compile/NBFTP i386


>Description:

when doing 

pkg_delete -R foo
when foo depends on "bar>=x.y", a file "=x.y" will be created in the current directory.

	
>How-To-Repeat:

1 particular example (but this will delete packages on your system, so don't do this
unless you don't mind):
the dialog pkg depends on ncurses>=4.2 so:

pkg_add dialog
ls
# note no "=4.2" file
pkg_delete -v -R dialog
ls
# note "=4.2" file with the result of "pkg_delete -v ncurses" in it.
	
>Fix:
make pkg_delete either expand dewey depends on recursive delete or simply drop the version number.

	
>Release-Note:
>Audit-Trail:
>Unformatted: