From owner-freebsd-pkg@freebsd.org Tue Jun 30 16:24:05 2015 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91D5798DC5A for ; Tue, 30 Jun 2015 16:24:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 778C229F5 for ; Tue, 30 Jun 2015 16:24:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 745BC98DC58; Tue, 30 Jun 2015 16:24:05 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73CD998DC57 for ; Tue, 30 Jun 2015 16:24:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46BC729F4 for ; Tue, 30 Jun 2015 16:24:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t5UGO58I043729 for ; Tue, 30 Jun 2015 16:24:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 198900] ports-mgmt/pkg: pkg version show status '?' when using multiple repos Date: Tue, 30 Jun 2015 16:24:05 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: elofu17@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 16:24:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198900 --- Comment #1 from elofu17@hotmail.com --- Doh. I found the problem. INDEXDIR is not set, therefore PORTSDIR is searched instead, and PORTSDIR defaults to /usr/ports if unset, which it is. However, on this machine, someone has installed /usr/ports, so the local index was actually there, messing with the results when I assumed both INDEXDIR and PORTSDIR would fail, defaulting to Remote repository mode like on all other boxes. Hwever, I still have a bug to report: On another machine I get a '?' even though the port is available. It is configured to only use my repo. Not ports. # ls -l /usr/ports/ total 0 # pkg version | grep '?' rubygem-ruby-augeas-0.5.0_2 ? # pkg version -R | grep '?' rubygem-ruby-augeas-0.5.0_2 ? # pkg version -Rr sentor | grep '?' rubygem-ruby-augeas-0.5.0_2 ? So in all tests I get a '?' indicating that the port is missing in the repo. But if I explicitly search for it, it exists in my repo: # pkg search -r sentor rubygem-ruby-augeas-0.5.0_2 rubygem-ruby-augeas-0.5.0_2 Can the problem be the unusual port name? It contains two dashes within the port name before the third and last dash that separates the name from the version number. Also, the version has an odd "0_2" value. Could it be a faulty regexp that make the comparison fail, and the port is tagged as nonexistent in the repo? /Elof -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.