1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Sigh. It'd be nice to completely commit a bugfix. Once again:

Fix a bug in which pkg_version(1) was ignoring $PORTREVISION
or $PORTEPOCH from ports' Makefile definitions.
This commit is contained in:
Bruce A. Mah 2000-10-26 21:50:41 +00:00
parent bc6049dd46
commit 5a817b9ba6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67656

View File

@ -284,15 +284,15 @@ foreach $packageString (sort keys %currentPackages) {
chdir "$PortsDirectory/$origin" or next; chdir "$PortsDirectory/$origin" or next;
open PKGNAME, "$GetPkgNameCommand|"; open PKGNAME, "$GetPkgNameCommand|";
$portversion = <PKGNAME>; $pkgname = <PKGNAME>;
close PKGNAME; close PKGNAME;
$pkgname =~ /(.+)-(.+)/; if ($pkgname ne "") {
$portversion = $2; chomp $pkgname;
if ($portversion ne "") {
chomp $portversion;
$pkgname =~ /(.+)-(.+)/;
$portversion = $2;
$currentPackages{$packageString}{'origin'} = $origin; $currentPackages{$packageString}{'origin'} = $origin;
$currentPackages{$packageString}{'portversion'} = $portversion; $currentPackages{$packageString}{'portversion'} = $portversion;
} }