mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Fix the Debian packaging script on systems with no codename
When calling `make deb-pkg` on a system with no codename (for example Arch Linux), lsb_release sometimes outputs `n/a` as the codename. This breaks dpkg-parsechangelog, which can't process the changelog correctly. Signed-off-by: Marcin Mielniczuk <marmistrz.dev@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.com>
This commit is contained in:
parent
ca617dc68b
commit
4c586062b2
@ -240,7 +240,8 @@ maintainer="$name <$email>"
|
|||||||
# Try to determine distribution
|
# Try to determine distribution
|
||||||
if [ -n "$KDEB_CHANGELOG_DIST" ]; then
|
if [ -n "$KDEB_CHANGELOG_DIST" ]; then
|
||||||
distribution=$KDEB_CHANGELOG_DIST
|
distribution=$KDEB_CHANGELOG_DIST
|
||||||
elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ]; then
|
# In some cases lsb_release returns the codename as n/a, which breaks dpkg-parsechangelog
|
||||||
|
elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ] && [ "$distribution" != "n/a" ]; then
|
||||||
: # nothing to do in this case
|
: # nothing to do in this case
|
||||||
else
|
else
|
||||||
distribution="unstable"
|
distribution="unstable"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user