>Number: 151521 >Category: misc >Synopsis: pkg_upgrade (sysutils/bsdadminscripts) not working if >/usr/ports not present >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 17 19:10:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Philip Christian >Release: 8.0 >Organization: None >Environment: FreeBSD mail 8.0-RELEASE FreeBSD 8.0-RELEASE #2: Mon Mar 15 12:13:05 GMT 2010 r...@freebsd:/usr/obj/usr/src/sys/NET5501 i386 >Description: pkg_upgrade from bsdadminscripts-6.1.1 does not work if /usr/ports is not present on the system.
# ./usr/local/sbin/pkg_upgrade -an cd: can't cd to /usr/ports cd: can't cd to /usr/ports fetch: ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-release/INDEX: File unavailable (e.g., file not found, no access) In my opinion it would be more user friendly if the script creates any directories that it needs (maybe prompt user for permission?) rather than just failing. >How-To-Repeat: Build FreeBSD system but don't install ports collection pkg_add -r bsdadminscripts ./usr/local/sbin/pkg_upgrade -an >Fix: modify script to check if directories that it needs are present and create them if not. >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"