summaryrefslogtreecommitdiff
path: root/deb822
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2018-01-13 01:22:02 +0000
committerKatolaZ <katolaz@freaknet.org>2018-01-13 01:22:02 +0000
commitb47d3326f6175a3fb0b997a20b3b1daa3dc9156f (patch)
treea1046ef9d37a3ae5ce9332c5dfd6ace51d8f5274 /deb822
parent4d5afdc2a6dfbb985fe9030cad7b0b8c3fc74819 (diff)
added yaml config file
Diffstat (limited to 'deb822')
-rw-r--r--deb822/package.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/deb822/package.go b/deb822/package.go
index 9eae85c..41a9613 100644
--- a/deb822/package.go
+++ b/deb822/package.go
@@ -92,23 +92,23 @@ func Stanza2HtmlPage(s Stanza, templ string, baseDir string, suite string, compo
log.Fatal("empty package!!!")
}
nameVersion := fmt.Sprintf("%s_%s", p.Name, p.Version)
- fmt.Printf(" nameVersion: %s\n", nameVersion)
- fmt.Printf(" baseDir: %s\n", baseDir)
+ //fmt.Printf(" nameVersion: %s\n", nameVersion)
+ //fmt.Printf(" baseDir: %s\n", baseDir)
fname = regexpRemove.ReplaceAllString(fname, "")
- fmt.Printf(" fname: %s\n", fname)
+ //fmt.Printf(" fname: %s\n", fname)
/// FIXME!!!! ERROR IN DETECTION OF PACKAGE NAME!!!!
dirName := fmt.Sprintf("%s/%s", baseDir, strings.Split(fname, nameVersion)[0])
err = os.MkdirAll(dirName, 0755)
if err == nil {
- fmt.Printf(" dirName: %s\n Package: %s\n Version: %s\n", dirName, p.Name, p.Version)
+ //fmt.Printf(" dirName: %s\n Package: %s\n Version: %s\n", dirName, p.Name, p.Version)
htmlFile := fmt.Sprintf("%s%s_%s.html", dirName, p.Name, p.Version)
- fmt.Printf("Creating file: %s\n---------\n", htmlFile)
+ //fmt.Printf("Creating file: %s\n---------\n", htmlFile)
if f, err := os.Open(htmlFile); err == nil {
f.Close()
- fmt.Printf("File %s exists -- skipping\n", htmlFile)
+ fmt.Fprintf(os.Stderr, " Skipping %s -- it exists\n", htmlFile)
return err
}
file, err := os.Create(htmlFile)