diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 34 |
1 files changed, 11 insertions, 23 deletions
@@ -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() } |
