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
b78d6238
Commit
b78d6238
authored
Apr 08, 2013
by
Christos Stavrakakis
Browse files
devflow-autopkg from debian branchese
parent
6da63769
Changes
2
Hide whitespace changes
Inline
Side-by-side
devflow/autopkg.py
View file @
b78d6238
...
...
@@ -166,6 +166,7 @@ def main():
# Get current branch name and type and check if it is a valid one
branch
=
original_repo
.
head
.
reference
.
name
branch
=
utils
.
undebianize
(
branch
)
branch_type_str
=
utils
.
get_branch_type
(
branch
)
if
branch_type_str
not
in
BRANCH_TYPES
.
keys
():
...
...
devflow/utils.py
View file @
b78d6238
...
...
@@ -184,3 +184,11 @@ def get_branch_type(branch_name):
def
version_to_tag
(
version
):
return
version
.
replace
(
"~"
,
""
)
def
undebianize
(
branch
):
if
branch
==
"debian"
:
return
"master"
elif
branch
.
startswith
(
"debian-"
):
return
branch
.
replace
(
"debian-"
,
""
)
else
:
return
branch
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