]> git.pld-linux.org Git - packages/issue-nice.git/commitdiff
- finally fixed the case when file is unreadable
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 16 Jun 2013 20:05:48 +0000 (22:05 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 16 Jun 2013 20:05:48 +0000 (22:05 +0200)
issue-nice.spec

index 59ea77c1939ef646a38e19a42c14119330a599f5..f047f720db9d84b2c37d27dcd0b285eb6c186d00 100644 (file)
@@ -3,7 +3,7 @@
 #      - check all by sby more experienced, espiacially paths, please
 #
 %define        distnamever     %(. /etc/os-release 2>/dev/null ; echo $VERSION)
-%define        distversion     %(. /etc/os-release 2>/dev/null ; echo ${VERSION_ID:-0})
+%define        distversion     %([ -e /etc/os-release ] && . /etc/os-release 2>/dev/null ; echo ${VERSION_ID:-0})
 
 Summary:       Nice PLD Linux release file
 Summary(pl.UTF-8):     Ładna wersja Linuksa PLD
This page took 0.117698 seconds and 4 git commands to generate.