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
b54fa347
Commit
b54fa347
authored
Apr 01, 2013
by
Christos Stavrakakis
Browse files
Export DEBEMAIL and DEBFULLNAME
parent
18be409c
Changes
1
Hide whitespace changes
Inline
Side-by-side
devflow/autopkg.py
View file @
b54fa347
...
...
@@ -152,7 +152,6 @@ def main():
raise
ValueError
(
red
(
"Invalid argument! Mode must be one: %s"
%
", "
.
join
(
AVAILABLE_MODES
)))
os
.
environ
[
"DEVFLOW_BUILD_MODE"
]
=
mode
# Load the repository
original_repo
=
utils
.
get_repository
()
...
...
@@ -176,6 +175,12 @@ def main():
raise
ValueError
(
"Malformed branch name '%s', cannot classify as"
" one of %s"
%
(
branch
,
allowed_branches
))
# Fix needed environment variables
os
.
environ
[
"DEVFLOW_BUILD_MODE"
]
=
mode
git_config
=
original_repo
.
config_reader
()
os
.
environ
[
"DEBFULLNAME"
]
=
git_config
.
get_value
(
"user"
,
"name"
)
os
.
environ
[
"DEBEMAIL"
]
=
git_config
.
get_value
(
"user"
,
"mail"
)
# Get the debian branch
debian_branch
=
utils
.
get_debian_branch
(
branch
)
origin_debian
=
"origin/"
+
debian_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