Subject: pkg/10056: pkg_delete -R produces spurious files
To: None <>
From: None <>
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
>Originator:     Dan McMahill
>Release:        1.4.2<NetBSD-current source date>
System: NetBSD 1.4.2_ALPHA NetBSD 1.4.2_ALPHA (NBFTP) #0: Sat Apr 1 10:53:52 PST 2000 i386


when doing 

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


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
# note no "=4.2" file
pkg_delete -v -R dialog
# note "=4.2" file with the result of "pkg_delete -v ncurses" in it.
make pkg_delete either expand dewey depends on recursive delete or simply drop the version number.