summaryrefslogtreecommitdiff
path: root/d1pkgweb.go
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2018-01-13 23:44:19 +0000
committerKatolaZ <katolaz@freaknet.org>2018-01-13 23:44:19 +0000
commit704c8957b2d3958ff6e030c0badc75f808ea8a9f (patch)
treebaa8ca4b2aa6a56b554f196cde54bc4f43958325 /d1pkgweb.go
parent44e6a294f5aab03af34c8c7623443e41867bb921 (diff)
Distinct dest dir for each release
Diffstat (limited to 'd1pkgweb.go')
-rw-r--r--d1pkgweb.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/d1pkgweb.go b/d1pkgweb.go
index 09fe675..b8b048f 100644
--- a/d1pkgweb.go
+++ b/d1pkgweb.go
@@ -24,8 +24,9 @@ func main() {
//fmt.Printf("Got config: %s\n", *conf)
for _, relCfg := range conf.PkgSets { // For each release...
+ relName := relCfg.Release
for _, suiteCfg := range relCfg.Suites { // For each suite of the release
- suite := suiteCfg.Name
+ suiteName := suiteCfg.Name
for _, component := range suiteCfg.Components { // For each component in the suite
fullURL := fmt.Sprintf("%s/%s", relCfg.RepoURL, component.URL)
fmt.Fprintf(os.Stderr, "Processing: %s\n", fullURL)
@@ -41,7 +42,7 @@ func main() {
r := bufio.NewScanner(uncompressed)
for s, err := deb822.ScanStanza(r); s["Package"] != ""; s, err = deb822.ScanStanza(r) {
if err == nil {
- deb822.Stanza2HtmlPage(s, pkgTempl, ".", suite, component.Name)
+ deb822.Stanza2HtmlPage(s, pkgTempl, ".", relName, suiteName, component.Name)
} else {
fmt.Printf("error: %s\n", err)
}