Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Docker Build Images
scripts
Commits
028a0ab3
Commit
028a0ab3
authored
Sep 24, 2019
by
Markus Frosch
Browse files
deb: Only use primary tarball
parent
7e762ebd
Pipeline
#5528
passed with stage
in 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
icinga-build-deb-source
View file @
028a0ab3
...
...
@@ -56,7 +56,8 @@ set -x
# figure out version
if
[
"
${
ICINGA_BUILD_TYPE
}
"
==
"release"
]
;
then
tarball
=
$(
ls
"
${
BUILDDIR
}
/
${
ICINGA_BUILD_PROJECT
}
_"
*
.orig.tar.
*
)
# TODO: properly ignore non-tarballs (.asc files)
tarball
=
$(
ls
"
${
BUILDDIR
}
/
${
ICINGA_BUILD_PROJECT
}
_"
*
.orig.tar.
*
|
head
-n1
)
debian_version
=
"
$(
dpkg-parsechangelog
-l
"
${
BUILDDIR
}
/
${
ICINGA_BUILD_PROJECT
}
/debian/changelog"
|
grep
-E
'^Version:'
|
cut
-f
2-
-d
' '
)
"
version
=
"
$(
echo
"
$debian_version
"
|
cut
-d-
-f1
)
"
...
...
Write
Preview
Supports
Markdown
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