@@ -188,6 +188,10 @@ func main() {
188
188
189
189
archNamespaces = map [string ]string {}
190
190
for _ , archMapping := range c .GlobalStringSlice ("arch-namespace" ) {
191
+ if archMapping == "" {
192
+ // "BASHBREW_ARCH_NAMESPACES=" (should be the same as the empty list)
193
+ continue
194
+ }
191
195
splitArchMapping := strings .SplitN (archMapping , "=" , 2 )
192
196
splitArch , splitNamespace := strings .TrimSpace (splitArchMapping [0 ]), strings .TrimSpace (splitArchMapping [1 ])
193
197
archNamespaces [splitArch ] = splitNamespace
@@ -224,6 +228,10 @@ func main() {
224
228
Name : "arch-filter" ,
225
229
Usage : "like apply-constraints, but only for Architectures" ,
226
230
},
231
+ "build-order" : cli.BoolFlag {
232
+ Name : "build-order" ,
233
+ Usage : "sort by the order repos would need to build (topsort)" ,
234
+ },
227
235
"depth" : cli.IntFlag {
228
236
Name : "depth" ,
229
237
Value : 0 ,
@@ -258,10 +266,7 @@ func main() {
258
266
commonFlags ["uniq" ],
259
267
commonFlags ["apply-constraints" ],
260
268
commonFlags ["arch-filter" ],
261
- cli.BoolFlag {
262
- Name : "build-order" ,
263
- Usage : "sort by the order repos would need to build (topsort)" ,
264
- },
269
+ commonFlags ["build-order" ],
265
270
cli.BoolFlag {
266
271
Name : "repos" ,
267
272
Usage : `list only repos, not repo:tag (unless "repo:tag" is explicitly specified)` ,
@@ -380,6 +385,7 @@ func main() {
380
385
Name : "format-file, F" ,
381
386
Usage : "use the contents of `FILE` for \" --format\" " ,
382
387
},
388
+ commonFlags ["build-order" ],
383
389
},
384
390
Before : subcommandBeforeFactory ("cat" ),
385
391
Action : cmdCat ,
0 commit comments