Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
13f7304b
Commit
13f7304b
authored
Aug 28, 2015
by
Holger Levsen
Browse files
reproducible: improve comments
parent
7589d51b
Changes
1
Hide whitespace changes
Inline
Side-by-side
hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment
View file @
13f7304b
...
...
@@ -2,11 +2,12 @@
set
-e
# exit if we are in the same UTS namespace
than
init
# exit if we are in the same UTS namespace
as
init
( != 2nd build )
[
"
$(
readlink
/proc/1/ns/uts
)
"
=
"
$(
readlink
/proc/self/ns/uts
)
"
]
&&
exit
0
echo
"I: Changing hostname to test build reproducibility"
>
&2
echo
"I: Changing host
+domain
name to test build reproducibility"
>
&2
sed
-e
'/^127.0.0.1/s/$/ i-capture-the-hostname i-capture-the-hostname.i-capture-the-domain/'
-i
/etc/hosts
hostname
i-capture-the-hostname
domainname i-capture-the-domain
echo
"I: Adding a custom variable just for the fun of it..."
>
&2
export
CAPTURE_ENVIRONMENT
=
"I capture the environment"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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