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

index 2dd2f9e8ba1c6f9271315bfec4e0022a751ce85b..53898eb8e1cf825b7fa57e909a437a90cf15217f 100644 (file)
@@ -1,5 +1,5 @@
 %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:       PLD Linux release file with virtual keyboard
 Summary(pl.UTF-8):     Wersja Linuksa PLD z wirtualną klawiaturą
This page took 0.151439 seconds and 4 git commands to generate.