packages: dic/dic.spec - %post fix
adamg
adamg at pld-linux.org
Thu Jul 23 11:05:22 CEST 2009
Author: adamg Date: Thu Jul 23 09:05:22 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- %post fix
---- Files affected:
packages/dic:
dic.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: packages/dic/dic.spec
diff -u packages/dic/dic.spec:1.5 packages/dic/dic.spec:1.6
--- packages/dic/dic.spec:1.5 Wed Jul 22 12:17:41 2009
+++ packages/dic/dic.spec Thu Jul 23 11:05:16 2009
@@ -90,7 +90,9 @@
%attr(755,root,root) %{_datadir}/mc/extfs/mcdic
%post mc
-grep mcdic %{mcextfs} &> /dev/null || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs}
+if [ -f %{mcextfs} ]; then
+ grep -q mcdic %{mcextfs} || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs}
+fi
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -98,6 +100,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2009/07/23 09:05:16 adamg
+- %post fix
+
Revision 1.5 2009/07/22 10:17:41 uzsolt
- %%post mc
- verbose description to mc subpackage
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/dic/dic.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list