Skip to content

Commit

Permalink
Quark: print version if available, protect Quark-refspec for non-git …
Browse files Browse the repository at this point in the history
…quarks
  • Loading branch information
crucialfelix committed Apr 17, 2015
1 parent 44b4973 commit ba60b8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SCClassLibrary/Common/Quarks/Quark.sc
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ Quark {
}
refspec {
^refspec ?? {
git.refspec
git !? { git.refspec }
}
}
tags {
^git.tags
^git !? { git.tags }
}
isDownloaded {
^File.exists(this.localPath)
Expand Down Expand Up @@ -214,8 +214,9 @@ Quark {
}

printOn { arg stream;
var v = this.version ? this.refspec;
stream << "Quark: " << name;
if(this.version.notNil,{ stream << " [" << this.version << "]"; });
if(v.notNil,{ stream << "[" << v << "]" });
}
help {
var p = this.data['schelp'];
Expand Down

0 comments on commit ba60b8a

Please sign in to comment.