mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
Fix a bug that would stop `port create` from creating ports with "dots" in their name -- `port create foo.bar` would previously yield a directory "foo". Approved by: koobs (mentor)
11 lines
372 B
Ruby
11 lines
372 B
Ruby
--- src/newfile.rb.in.orig 2015-01-23 10:28:31 UTC
|
|
+++ src/newfile.rb.in
|
|
@@ -431,7 +431,7 @@ class NewfileOpts
|
|
|proj|
|
|
arr = proj.split(".")
|
|
@opts["template"] = arr[0]
|
|
- @opts["project"] = arr[1]
|
|
+ @opts["project"] = arr.drop(1).join('.')
|
|
}
|
|
@parser.def_option("-s", "--show",
|
|
"Show installed file templates, project#{NL}" +
|