move this code to repostatus

This commit is contained in:
Jeff Carr 2024-03-02 17:51:59 -06:00
parent eebdaaf357
commit 2f451477c8
1 changed files with 0 additions and 20 deletions

View File

@ -1,8 +1,6 @@
package repolist package repolist
import ( import (
"unicode"
"go.wit.com/gui" "go.wit.com/gui"
"go.wit.com/lib/gui/repostatus" "go.wit.com/lib/gui/repostatus"
"go.wit.com/log" "go.wit.com/log"
@ -178,21 +176,3 @@ func (rl *RepoList) TotalGo() int {
} }
return count return count
} }
func trimNonNumericFromStart(s string) string {
for i, r := range s {
if unicode.IsDigit(r) {
return s[i:]
}
}
return ""
}
func ValidDebianPackageVersion(v string) string {
newv := trimNonNumericFromStart(v)
if newv == "" {
newv = "0.0"
}
log.Info("ValidDebianPackageVersion:", newv)
return newv
}