summaryrefslogtreecommitdiff
path: root/addRepo.go
diff options
context:
space:
mode:
Diffstat (limited to 'addRepo.go')
-rw-r--r--addRepo.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/addRepo.go b/addRepo.go
index f679107..1722d41 100644
--- a/addRepo.go
+++ b/addRepo.go
@@ -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")
}