Bug 102417 - portupgrade fails with
Summary: portupgrade fails with
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sergey Matveychuk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-23 05:00 UTC by Ryan Wehler
Modified: 2006-08-25 13:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Wehler 2006-08-23 05:00:25 UTC
package_site_builder([latest]) in PKG_SITES = [ ... ] gives errors upon trying to use portupgrade.

example error:
portupgrade -PP irssi
** Error occured reading /usr/local/etc/pkgtools.conf:
        undefined local variable or method `latest' for PkgConfig:Module

From pkgtools.conf header..
--- SNIP ---
#  pkg_site_builder([latest])
#    Returns a URI of the packages directory on the package builder site;
#    Equivalent to:
#     on i386:
#      sprintf('http://pointyhat.FreeBSD.org/errorlogs/%s-%s-%s/',
#              OS_PLATFORM, OS_MAJOR, latest ? 'latest' : 'full')
#

--- SNIP ---

I'm trying to use portinstall/upgrade to fetch pointyhat packages (hence, the builder([latest]) variable.

How-To-Repeat: Change your PKG_SITES to this:

 PKG_SITES = [
    pkg_site_builder(true),
    pkg_site_builder([latest]),
    pkg_site_mirror(),
  ]

to see problem.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-08-23 05:17:57 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sem

Over to maintainer
Comment 2 Sergey Matveychuk freebsd_committer freebsd_triage 2006-08-25 13:12:27 UTC
The description wrong. A right syntax is pkg_site_builder(['latest']).

Thanks for the report. I'll fix it ASAP.
-- 
Dixi.
Sem.
Comment 3 Sergey Matveychuk freebsd_committer freebsd_triage 2006-08-25 13:23:04 UTC
Even pkg_site_builder(true|false) is the correctest syntax.

-- 
Dixi.
Sem.
Comment 4 Sergey Matveychuk freebsd_committer freebsd_triage 2006-08-25 13:47:43 UTC
State Changed
From-To: open->closed

Descriptions in pkgtools.conf fixed. Thanks!