Date: Sun, 17 Oct 2010 19:08:32 GMT From: Philip Christian <subs@christiantena.net> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/151521: pkg_upgrade (sysutils/bsdadminscripts) not working if /usr/ports not present Message-ID: <201010171908.o9HJ8WMq073753@www.freebsd.org> Resent-Message-ID: <201010171910.o9HJA8jh002656@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 root@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010171908.o9HJ8WMq073753>