aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/package/builddeb3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 116ef00c0b82..510add6d050c 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -240,7 +240,8 @@ maintainer="$name <$email>"
240# Try to determine distribution 240# Try to determine distribution
241if [ -n "$KDEB_CHANGELOG_DIST" ]; then 241if [ -n "$KDEB_CHANGELOG_DIST" ]; then
242 distribution=$KDEB_CHANGELOG_DIST 242 distribution=$KDEB_CHANGELOG_DIST
243elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ]; then 243# In some cases lsb_release returns the codename as n/a, which breaks dpkg-parsechangelog
244elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ] && [ "$distribution" != "n/a" ]; then
244 : # nothing to do in this case 245 : # nothing to do in this case
245else 246else
246 distribution="unstable" 247 distribution="unstable"