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:
parent
bc6049dd46
commit
5a817b9ba6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67656
@ -284,15 +284,15 @@ foreach $packageString (sort keys %currentPackages) {
|
||||
chdir "$PortsDirectory/$origin" or next;
|
||||
|
||||
open PKGNAME, "$GetPkgNameCommand|";
|
||||
$portversion = <PKGNAME>;
|
||||
$pkgname = <PKGNAME>;
|
||||
close PKGNAME;
|
||||
|
||||
$pkgname =~ /(.+)-(.+)/;
|
||||
$portversion = $2;
|
||||
|
||||
if ($portversion ne "") {
|
||||
chomp $portversion;
|
||||
if ($pkgname ne "") {
|
||||
chomp $pkgname;
|
||||
|
||||
$pkgname =~ /(.+)-(.+)/;
|
||||
$portversion = $2;
|
||||
|
||||
$currentPackages{$packageString}{'origin'} = $origin;
|
||||
$currentPackages{$packageString}{'portversion'} = $portversion;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user