File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,14 @@ function kernel_build() {
9999 # Canonical's releases and our releases.
100100 #
101101 local canonical_abinum delphix_abinum kernel_release kernel_version
102+
102103 canonical_abinum=$( fakeroot debian/rules printenv | grep -E ' ^abinum ' | cut -d= -f2 | tr -d ' [:space:]' )
103104 delphix_abinum=" ${canonical_abinum} -$( date -u +" dx%Y%m%d%H" ) -$( git rev-parse --short HEAD) "
105+
104106 kernel_release=$( fakeroot debian/rules printenv | grep -E ' ^release ' | cut -d= -f2 | tr -d ' [:space:]' )
107+ if [[ -z " $kernel_release " ]]; then
108+ kernel_release=$( fakeroot debian/rules printenv | grep -E ' ^DEB_VERSION_UPSTREAM ' | cut -d= -f2 | tr -d ' [:space:]' )
109+ fi
105110
106111 #
107112 # We record the kernel version into a file. This field is consumed
You can’t perform that action at this time.
0 commit comments