summaryrefslogtreecommitdiff
path: root/addRepo.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-03-02 17:51:34 -0600
committerJeff Carr <[email protected]>2024-03-02 17:51:34 -0600
commit16f4ec5ac09a375d3dfbebbcb166dbd41de2a68e (patch)
tree5d6996ed7d260c07dfacac1c83b80248c8f8c5c4 /addRepo.go
parent1279baed72e38f47eef38448ee63e03605659409 (diff)
common versionv0.22.0v0.21.4
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")
}