Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 2000 23:10:03 -0800 (PST)
From:      Hobbits <calvinng@talentq.com>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/22659: pkg_version does not work for ports that add -gtk  suffix
Message-ID:  <200011070710.XAA47437@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/22659; it has been noted by GNATS.

From: Hobbits <calvinng@talentq.com>
To: freebsd-gnats-submit@FreeBSD.org, root@talentq.com
Cc:  
Subject: Re: ports/22659: pkg_version does not work for ports that add -gtk 
 suffix
Date: Tue, 07 Nov 2000 15:05:34 +0800

 Greetings,
 
   found a minor problem with the previous fix, because
   some ports actually contains -gtk in their name.
 
   This is slightly better, it only strips -gtk if
   the not found in INDEX.
 
 --- pkg_version-411     Thu Nov  2 13:23:14 2000
 +++ pkg_version Tue Nov  7 14:55:20 2000
 @@ -341,6 +341,15 @@
      $packageNameVer = $packageString;
      $packageName = $currentPackages{$packageString}{'name'};
  
 +    if (!defined $indexPackages{$packageName}{'fullversion'})
 +    {
 +        $packageGTK = $packageName; $packageGTK =~ s/-gtk$//;
 +        if (defined $indexPackages{$packageGTK}{'fullversion'})
 +        {
 +            $packageName = $packageGTK;
 +        }
 +    }
 +
      $currentVersion = $currentPackages{$packageString}{'fullversion'};
  
      if (defined $currentPackages{$packageString}{'portversion'}) {
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011070710.XAA47437>