Skip to content

Commit

Permalink
renamed 'deb/deb.go' to 'output/deb.go'
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellawrence committed Nov 11, 2017
1 parent ae3ad8b commit 663d211
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
Binary file modified output/debbie
Binary file not shown.
Binary file modified output/debbie_0.0.2_all.deb
Binary file not shown.
4 changes: 2 additions & 2 deletions src/debbie/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"time"
//
"debbie/common"
"debbie/deb"
"debbie/output"
)

var strPackageName = flag.String("name", "", "name of package")
Expand Down Expand Up @@ -58,7 +58,7 @@ func main() {
filepath.Walk(metadata.SourcePath, populateDataFiles(ignoreDirs, &dataFiles, metadata))

if *strPackageType == "deb" {
outputFile = deb.CreateDeb(metadata, dataFiles)
outputFile = output.CreateDeb(metadata, dataFiles)
} else {
fmt.Printf("package-type '%s' is invalid, must be 'deb'\n", *strPackageType)
os.Exit(2)
Expand Down
5 changes: 1 addition & 4 deletions src/debbie/deb/deb.go → src/debbie/output/deb.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package deb
package output

import (
"archive/tar"
Expand All @@ -10,7 +10,6 @@ import (
"path/filepath"
"os"
"time"
"runtime/debug"
//
"debbie/common"
//
Expand All @@ -36,8 +35,6 @@ const changelogTemplateText = `{{.Name}} ({{.Version}}-1) unstable; urgent=mediu
-- {{.Maintainer}} <{{.MaintainerEmail}}> Mon, 22 Mar 2010 00:37:31 +0100
`

const compatTemplateText = `10
`

func CreateDeb(metadata common.PackageMetaData, dataFiles []common.TarFile) string {
debFileName := fmt.Sprintf("%s_%s_all.deb", metadata.Name, metadata.Version)
Expand Down

0 comments on commit 663d211

Please sign in to comment.