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

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


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

    - finally fixed the case when file is unreadable

 issue.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/issue.spec b/issue.spec
index 7176534..78690e7 100644
--- a/issue.spec
+++ b/issue.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.git/commitdiff/686a117c364b48dbb0e06fb5b73a1225cd2120bf



More information about the pld-cvs-commit mailing list