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

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


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

    - finally fixed the case when file is unreadable

 issue-fancy.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/issue-fancy.spec b/issue-fancy.spec
index 28bf1c3..c720a2e 100644
--- a/issue-fancy.spec
+++ b/issue-fancy.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 logo
 Summary(de.UTF-8):	PLD Linux Release-Datei mit logo
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/issue-fancy.git/commitdiff/79da1bc4850866ef5af8bcb2d384b375fa2f1d6e



More information about the pld-cvs-commit mailing list