diff options
Diffstat (limited to 'deb822/package.go')
-rw-r--r-- | deb822/package.go | 12 |
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) |