Fix pool directory for packages with version in Source: field. #44

This commit is contained in:
Andrey Smirnov
2014-05-10 17:25:44 +04:00
parent 49eed59238
commit 5301e8a341
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -411,6 +411,8 @@ func (p *Package) PoolDirectory() (string, error) {
source := p.Source
if source == "" {
source = p.Name
} else if pos := strings.Index(source, "("); pos != -1 {
source = strings.TrimSpace(source[:pos])
}
if len(source) < 2 {