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

baggins baggins at pld-linux.org
Sun Jun 16 22:05:35 CEST 2013


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

    - finally fixed the case when file is unreadable

 issue-pure.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/issue-pure.spec b/issue-pure.spec
index 4461618..4565310 100644
--- a/issue-pure.spec
+++ b/issue-pure.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 prelogin message and identification file
 Summary(de.UTF-8):	PLD Linux Systemidentifikationsdatei
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/issue-pure.git/commitdiff/ed6964b9946f202e4625752de08c02458276c48e



More information about the pld-cvs-commit mailing list