projects
/
cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87355b5
)
Stop using Version class in 'latest' command.
author
Carl Hetherington
<cth@carlh.net>
Sat, 27 Apr 2024 20:50:40 +0000
(22:50 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 27 Apr 2024 20:50:40 +0000
(22:50 +0200)
cdist
patch
|
blob
|
history
diff --git
a/cdist
b/cdist
index 42171a57a312584c3d31ff08a668b6cc352de058..28995f249149ca970798379092cd8bee63f77b1a 100755
(executable)
--- a/
cdist
+++ b/
cdist
@@
-1337,11
+1337,11
@@
def main():
if len(s) > 1:
t = s[1]
if len(t) > 0 and t[0] == 'v':
- v =
Version(t[1:]
)
- if (args.major is None or
v.major == args.major) and (args.minor is None or v.minor
== args.minor):
+ v =
t[1:].split('.'
)
+ if (args.major is None or
int(v[0]) == args.major) and (args.minor is None or int(v[1])
== args.minor):
latest = v
- print(
latest
)
+ print(
'.'.join(latest)
)
target.cleanup()
elif args.command == 'test':