summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'common.go')
-rw-r--r--common.go34
1 files changed, 11 insertions, 23 deletions
diff --git a/common.go b/common.go
index a2c8685..3c6259f 100644
--- a/common.go
+++ b/common.go
@@ -45,6 +45,13 @@ func (rs *RepoStatus) GoPath() string {
return rs.goPath.String()
}
+func (rs *RepoStatus) IsPrimitive() bool {
+ if rs.primitive.String() == "true" {
+ return true
+ }
+ return false
+}
+
// returns the filesystem path to the repo
func (rs *RepoStatus) Path() string {
return rs.realPath.String()
@@ -98,15 +105,6 @@ func (rs *RepoStatus) IsGoLang() bool {
return false
}
-/*
-func (rs *RepoStatus) Initialized() bool {
- log.Log(CHANGE, "checking Initialized()")
- if rs == nil {return false}
- if rs.parent == nil {return false}
- return true
-}
-*/
-
func (rs *RepoStatus) RepoType() string {
if !rs.IsGoLang() {
return ""
@@ -151,20 +149,14 @@ func (rs *RepoStatus) Build() bool {
return false
}
-// moved to repolist
-func (rs *RepoStatus) GetGoSumStatusOld() string {
- return rs.goSumStatus.String()
-}
-
-// moved to repolist
-func (rs *RepoStatus) SetGoSumStatusOld(s string) {
- rs.goSumStatus.SetText(s)
-}
-
func (rs *RepoStatus) GetTargetVersion() string {
return rs.targetReleaseVersion.String()
}
+func (rs *RepoStatus) GetCurrentVersion() string {
+ return rs.currentVersion.String()
+}
+
func (rs *RepoStatus) IncrementVersion() bool {
return rs.setTag()
}
@@ -197,10 +189,6 @@ func (rs *RepoStatus) MirrorGitState() *gui.Node {
return rs.gitState.MirrorValue()
}
-func (rs *RepoStatus) MirrorGoState() *gui.Node {
- return rs.goSumStatus.MirrorValue()
-}
-
func (rs *RepoStatus) MirrorMasterVersion() *gui.Node {
return rs.mainBranchVersion.MirrorValue()
}