[pacman-dev] rankmirrors script
Dan McGee
dpmcgee at gmail.com
Fri Dec 8 17:38:47 EST 2006
That line with the description has to be on one line. This patch
should fix that, a problem in a parser.add_option, and the Gmail
inserted "Show quoted text".
Dan
--- pacman-lib.orig/scripts/rankmirrors 2006-12-08 17:07:34.000000000 -0500
+++ pacman-lib/scripts/rankmirrors 2006-12-08 17:35:09.000000000 -0500
@@ -25,16 +25,14 @@
def createOptParser():
usage = "usage: %prog [options] MIRRORFILE"
- description = "Ranks pacman mirrors by their connection and
-opening speed. Pacman mirror files are located in /etc/pacman.d/."
+ description = "Ranks pacman mirrors by their connection and
opening speed. Pacman mirror files are located in /etc/pacman.d/."
parser = OptionParser(usage=usage,description=description)
parser.add_option("-f", "--formatted", action="store_true",
- dest = "formatted", default=False, help="output in mirror
-file format")
+ dest = "formatted", default=False,
+ help="output in mirror file format")
parser.add_option("-n", dest="num", default=0,
help="number of servers to output, 0 for all")
parser.add_option("-v", "--verbose", action="store_true", dest="verbose",
-- Show quoted text -
default=False, help="be verbose in output")
return parser
More information about the pacman-dev
mailing list