From 16f4ec5ac09a375d3dfbebbcb166dbd41de2a68e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 2 Mar 2024 17:51:34 -0600 Subject: common version --- addRepo.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'addRepo.go') 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") } -- cgit v1.2.3