[packages/issue-alpha] - finally fixed the case when file is unreadable

baggins baggins at pld-linux.org
Sun Jun 16 22:06:08 CEST 2013


commit 456f0d59b3d9b53ef0f80e6a55f5c245168c8eb0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jun 16 22:06:06 2013 +0200

    - finally fixed the case when file is unreadable

 issue-alpha.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/issue-alpha.spec b/issue-alpha.spec
index 2dd2f9e..53898eb 100644
--- a/issue-alpha.spec
+++ b/issue-alpha.spec
@@ -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ą
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/issue-alpha.git/commitdiff/456f0d59b3d9b53ef0f80e6a55f5c245168c8eb0



More information about the pld-cvs-commit mailing list