diff options
| author | Jeff Carr <[email protected]> | 2024-03-02 17:51:34 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-03-02 17:51:34 -0600 | 
| commit | 16f4ec5ac09a375d3dfbebbcb166dbd41de2a68e (patch) | |
| tree | 5d6996ed7d260c07dfacac1c83b80248c8f8c5c4 | |
| parent | 1279baed72e38f47eef38448ee63e03605659409 (diff) | |
| -rw-r--r-- | addRepo.go | 6 | ||||
| -rw-r--r-- | buildPackage.go | 7 | 
2 files changed, 4 insertions, 9 deletions
@@ -67,19 +67,17 @@ func (c *controlBox) addRepo(path string) {  	cbname := c.status.GetCurrentBranchName()  	cbversion := c.status.GetCurrentBranchVersion() -	debversion := strings.TrimPrefix(cbversion, "v") +	debversion := c.status.DebianCurrentVersion()  	if c.status.CheckDirty() {  		c.dirtyL.SetText("true") -		debversion = debversion + "-dirty"  	} else {  		c.dirtyL.SetText("false")  	}  	lasttag := c.status.GetLastTagVersion()  	if args.Release { -		debversion = lasttag -		debversion = strings.TrimPrefix(debversion, "v") +		debversion = c.status.DebianReleaseVersion()  		c.dirtyL.SetText("false")  	} diff --git a/buildPackage.go b/buildPackage.go index 3a4310c..3e511d2 100644 --- a/buildPackage.go +++ b/buildPackage.go @@ -11,7 +11,6 @@ import (  	"strings"  	"time" -	"go.wit.com/lib/gui/repolist"  	"go.wit.com/lib/gui/shell"  	"go.wit.com/log"  ) @@ -39,10 +38,8 @@ func (c *controlBox) buildPackage() (bool, error) {  	}  	arch := c.Architecture.String() -	tmp := c.Version.String() -	version := repolist.ValidDebianPackageVersion(tmp) -	log.Info("version went from", tmp, "to", version) -	os.Exit(-1) +	version := c.Version.String() +	log.Info("version is:", version)  	debname := filename + "_" + version + "_" + arch + ".deb"  	fulldebname := filepath.Join(homeDir, "incoming", debname)  	if shell.Exists(fulldebname) {  | 
