Mikulas Patocka 5df99bec21 scripts/setlocalversion: fix a bug when LOCALVERSION is empty
The commit 042da426f8eb ("scripts/setlocalversion: simplify the short
version part") reduces indentation. Unfortunately, it also changes behavior
in a subtle way - if the user has empty "LOCALVERSION" variable, the plus
sign is appended to the kernel version. It wasn't appended before.

This patch reverts to the old behavior - we append the plus sign only if
the LOCALVERSION variable is not set.

Fixes: 042da426f8eb ("scripts/setlocalversion: simplify the short version part")
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2021-07-18 23:48:14 +09:00
..
2021-07-10 11:01:38 -07:00
2020-12-08 23:30:04 +09:00
2021-07-10 11:01:38 -07:00
2021-04-26 08:38:10 -07:00
2021-07-10 11:01:38 -07:00
2021-07-10 11:01:38 -07:00
2021-02-26 09:41:05 -08:00
2021-05-02 00:43:35 +09:00
2021-05-08 10:00:11 -07:00
2020-12-08 23:30:04 +09:00
2021-03-28 14:41:49 +02:00
2020-12-08 23:30:04 +09:00
2021-07-09 04:01:14 +09:00
2021-05-02 00:43:35 +09:00
2021-05-03 17:23:06 -06:00