Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
devflow
Commits
6e9193cb
Commit
6e9193cb
authored
Apr 02, 2013
by
Christos Stavrakakis
Browse files
Fix debian tag, remove ~
parent
4f3efe82
Changes
3
Hide whitespace changes
Inline
Side-by-side
devflow/autopkg.py
View file @
6e9193cb
...
...
@@ -257,7 +257,7 @@ def main():
# Commit Changes
repo
.
git
.
commit
(
"-s"
,
"-a"
,
m
=
"Bump version to %s"
%
debian_version
)
# Tag debian branch
debian_branch_tag
=
"debian/"
+
debian_version
debian_branch_tag
=
"debian/"
+
utils
.
version_to_tag
(
debian_version
)
if
mode
==
"release"
:
repo
.
git
.
tag
(
debian_branch_tag
)
...
...
devflow/utils.py
View file @
6e9193cb
...
...
@@ -173,3 +173,7 @@ def get_branch_type(branch_name):
else
:
btypestr
=
branch_name
return
btypestr
def
version_to_tag
(
version
):
return
version
.
replace
(
"~"
,
""
)
devflow/versioning.py
View file @
6e9193cb
...
...
@@ -305,10 +305,11 @@ def debian_version_from_python_version(pyver):
def
get_revision
(
version
):
"""Find revision for a debian version"""
version_tag
=
utils
.
version_to_tag
(
version
)
repo
=
utils
.
get_repository
()
minor
=
1
while
True
:
tag
=
"debian/"
+
version
+
"-"
+
str
(
minor
)
tag
=
"debian/"
+
version
_tag
+
"-"
+
str
(
minor
)
if
tag
in
repo
.
tags
:
minor
+=
1
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment