commit | bb15701ef09844cda896f11c787d7e536806024b | [log] [tgz] |
---|---|---|
author | Matt Farina <matt@mattfarina.com> | Tue Dec 22 12:45:01 2015 -0500 |
committer | Matt Farina <matt@mattfarina.com> | Tue Dec 22 12:45:01 2015 -0500 |
tree | aa2565dbeeffbce087b10b1efaf4bcc01e714147 | |
parent | 8b683f9ec07fb4463a252ead1ee91b693f1c4cb9 [diff] |
Fixed bug in identification of subpackages
diff --git a/cfg/config.go b/cfg/config.go index 2f4d809..8e3e107 100644 --- a/cfg/config.go +++ b/cfg/config.go
@@ -295,7 +295,7 @@ o := d.Name d.Name = util.GetRootFromPackage(d.Name) subpkg := strings.TrimPrefix(o, d.Name) - if len(subpkg) > 0 && subpkg != o { + if len(subpkg) > 0 && subpkg != "/" { d.Subpackages = append(d.Subpackages, strings.TrimPrefix(subpkg, "/")) }