#137 closed defect (fixed)
portindex -a should also require -o
Reported by: | michaelm@… | Owned by: | landonf (Landon Fuller) |
---|---|---|---|
Priority: | High | Milestone: | |
Component: | base | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
Making a portindex in the dports directory with the -a flag for archives doesn't make an index that works remotely. -a should imply -o with a sensible default (if we can think of one) or require -o explicitly
Change History (2)
comment:1 Changed 22 years ago by landonf@…
Owner: | changed from kevin@… to landonf@… |
---|
comment:2 Changed 22 years ago by landonf@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Index: portindex.tcl =================================================================== RCS file: /cvs/od/proj/darwinports/base/src/port/portindex.tcl,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -b -r1.11 -r1.12 --- portindex.tcl 13 Oct 2002 10:24:52 -0000 1.11 +++ portindex.tcl 8 Dec 2002 14:35:15 -0000 1.12 @@ -12,7 +12,7 @@
+ puts "-a:\tArchive port directories (for remote sites). Requires -o option"
@@ -88,6 +88,13 @@
+ +if {$archive == 1 && ![info exists outdir]} { + puts "You must specify an output directory with -o when using the -a option" + print_usage + exit 1 +} +