Permalink
Browse files

added date option

  • Loading branch information...
timbertson committed Jul 30, 2010
1 parent efafdab commit b5e8346240c2f2a05563d9c100a3db1f46f5997a
Showing with 8 additions and 1 deletion.
  1. +4 −1 version.py
  2. +4 −0 version.xml
View
@@ -98,7 +98,10 @@ def get_version(input, current_versions):
"""
if all([char == '+' for char in input]):
return current_versions[0].increment(len(input))
-
+ elif input == 'date':
+ import time
+ v = time.strftime("%Y%m%d.%H%M")
+ return Version(v)
elif input == '=':
return current_versions[0]
else:
View
@@ -6,5 +6,9 @@
<description>
</description>
<group main="version.py">
+ <implementation id="sha1new=bea229b667512d5b01b6b7f35919ca88ee95af50" released="2010-07-31" version="0.2">
+ <manifest-digest sha256="193941f6f9f61c35ea94156cfd1c8e52e25577ce3e23f89db0eead9120154a65"/>
+ <archive href="http://gfxmonk.net/dist/0install/version/version-0.2.tgz" size="1551"/>
+ </implementation>
</group>
</interface>

0 comments on commit b5e8346

Please sign in to comment.