Suggested port command enhancement?

paul beard paulbeard at gmail.com
Thu Jun 5 12:43:16 PDT 2008


On Thu, Jun 5, 2008 at 12:00 PM, <
macports-users-request at lists.macosforge.org> wrote:

> Message: 12
> Date: Thu, 05 Jun 2008 18:29:00 +0200
> From: Rainer M?ller <raimue at macports.org>
> Subject: Re: Suggested port command enhancement?
> To: Daniel Horwood <mp at dpj.sent.com>
> Cc: MacPorts Users <macports-users at lists.macosforge.org>
> Message-ID: <4848144C.1080601 at macports.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Daniel Horwood wrote:
> > On 04/06/2008, at 9:05 AM, Rainer M?ller wrote:
> > On 10.5.3 with macports 1.6,
> > $ sudo pormirror
> >
> > outputs:
> >    can't read "0": no such variable
> >        while executing
> >    "exec /usr/bin/tclsh "$0" "$@""
> >        (file "/opt/local/bin/portmirror" line 3)
>
> Hm, this looks like the line meant for /bin/sh got executed by Tcl. Yes,
>  a backslash is missing there. I can confirm the issue for 1.6.0. But
> it was already fixed in trunk and works there.
>
> Quick fix for 1.6.0: Replace the first three lines of portmirror with
> the first three lines from port. Or simply add the missing backslash at
> the end of the modeline (line 2) in portmirror.
>
> > Am I missing something? Also, are 'port mirror' or 'portmirror'
> > documented anywhere?
>
> Don't think so. I found out what they do by reading the source.
>
> port mirror downloads the distfiles and stores them in the distfiles
> map. portmirror iterates over the distfiles and deletes anything that is
> not in the distfiles map.
>

I don't see the difference?

[/Users/paul]# head -4 /opt/local/bin/port /opt/local/bin/portmirror
==> /opt/local/bin/port <==
#!/bin/sh
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil;
c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 \
exec /usr/bin/tclsh "$0" "$@"
# port.tcl

==> /opt/local/bin/portmirror <==
#!/bin/sh
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil;
c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 \
exec /usr/bin/tclsh "$0" "$@"
# portmirror.tcl


-- 
Paul Beard / www.paulbeard.org/
<paulbeard at gmail.com/paulbeard at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20080605/17b37c37/attachment.htm 


More information about the macports-users mailing list