Regenerate Directory: field for source packages while publishing.

This commit is contained in:
Andrey Smirnov
2014-02-17 13:03:27 +04:00
parent d999258744
commit ba178b9863
+5 -1
View File
@@ -360,7 +360,11 @@ func (p *Package) LinkFromPool(packageRepo *Repository, prefix string, component
return err
}
p.Files[i].Filename = relPath
if p.IsSource {
p.Extra["Directory"] = filepath.Dir(relPath)
} else {
p.Files[i].Filename = relPath
}
}
return nil