From owner-freebsd-bugs Sun Apr 23 7:30: 4 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9B67337B839 for ; Sun, 23 Apr 2000 07:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA04212; Sun, 23 Apr 2000 07:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from rhenium.btinternet.com (rhenium.btinternet.com [194.73.73.93]) by hub.freebsd.org (Postfix) with ESMTP id 5DD4837B595 for ; Sun, 23 Apr 2000 07:20:26 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from [213.1.166.43] (helo=parish.my.domain) by protactinium with esmtp (Exim 2.05 #1) id 12jArz-0006bk-00 for FreeBSD-gnats-submit@freebsd.org; Sun, 23 Apr 2000 02:07:32 +0100 Received: (from root@localhost) by parish.my.domain (8.9.3/8.9.3) id CAA21275; Sun, 23 Apr 2000 02:07:44 +0100 (BST) (envelope-from mark) Message-Id: <200004230107.CAA21275@parish.my.domain> Date: Sun, 23 Apr 2000 02:07:44 +0100 (BST) From: Mark Ovens Reply-To: Mark Ovens To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/18176: [PATCH] Fix for bug in -c option of pkg_version Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18176 >Category: bin >Synopsis: [PATCH] Fix for bug in -c option of pkg_version >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 Apr 23 07:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Mark Ovens >Release: FreeBSD 4.0-STABLE i386 >Organization: >Environment: FreeBSD parish 4.0-STABLE FreeBSD 4.0-STABLE #1: Sat Mar 18 18:53:40 GMT 2000 mark@parish:/usr/src/sys/compile/PARISH i386 >Description: When using the -c option to pkg_version if a package is "unknown in the index" it generates commands to build the wrong port, e.g.: # # mozilla-fonts # unknown in index # cd /usr/ports/lang/modula-3-lib make && pkg_delete -f mozilla-fonts-1.0 make install >How-To-Repeat: pkg_version -c >Fix: *** pkg_version.orig Fri Apr 7 03:27:17 2000 --- pkg_version Fri Apr 7 03:28:23 2000 *************** *** 259,264 **** --- 259,265 ---- } } else { + next if $ShowCommandsFlag; $versionCode = "?"; $Comment = "unknown in index"; } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message