[137809] branches/gsoc15-portfile/port-create
chunyang at macports.org
chunyang at macports.org
Sat Jun 20 06:53:13 PDT 2015
Revision: 137809
https://trac.macports.org/changeset/137809
Author: chunyang at macports.org
Date: 2015-06-20 06:53:13 -0700 (Sat, 20 Jun 2015)
Log Message:
-----------
port-create: Search archlinux
Modified Paths:
--------------
branches/gsoc15-portfile/port-create
Modified: branches/gsoc15-portfile/port-create
===================================================================
--- branches/gsoc15-portfile/port-create 2015-06-20 12:52:16 UTC (rev 137808)
+++ branches/gsoc15-portfile/port-create 2015-06-20 13:53:13 UTC (rev 137809)
@@ -61,12 +61,13 @@
{opensuse.arg "" "Search openSUSE" }
{fedora.arg "" "Search Fedora" }
{ubuntu.arg "" "Search Ubuntu" }
+ {arch.arg "" "Search Archlinux" }
}
set usage ": $argv0
\[-url <url>] \[-name <name>] \[-version <version>] \[-group <group>]
\[-outfile <outfile>]
- \[-homebrew|-fink|-debian|-opensuse|-fedora|-ubuntu <query>]
+ \[-homebrew|-fink|-debian|-opensuse|-fedora|-ubuntu|-arch <query>]
options:"
if {[catch {array set params [cmdline::getoptions ::argv $options $usage]}]} {
@@ -111,6 +112,12 @@
exit 0
}
+set query $params(arch)
+if {[expr {[string length $query] > 0}]} {
+ exec open "https://www.archlinux.org/packages/?q=${query}"
+ exit 0
+}
+
if {[expr {[string length $params(url)] > 0}]} {
set tarball [get_tarball_filename $params(url)]
set name [get_name $tarball]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150620/c4511634/attachment-0001.html>
More information about the macports-changes
mailing list