From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-dev/2013-February/022938.html | 95 ++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 zarb-ml/mageia-dev/2013-February/022938.html (limited to 'zarb-ml/mageia-dev/2013-February/022938.html') diff --git a/zarb-ml/mageia-dev/2013-February/022938.html b/zarb-ml/mageia-dev/2013-February/022938.html new file mode 100644 index 000000000..cea753224 --- /dev/null +++ b/zarb-ml/mageia-dev/2013-February/022938.html @@ -0,0 +1,95 @@ + + + + [Mageia-dev] [changelog] [RPM] cauldron core/release powermanga-0.91-2.mga3 + + + + + + + + + +

[Mageia-dev] [changelog] [RPM] cauldron core/release powermanga-0.91-2.mga3

+ Christiaan Welvaart + cjw at daneel.dyndns.org +
+ Mon Feb 18 12:28:20 CET 2013 +

+
+ +
On Mon, 18 Feb 2013, zezinho wrote:
+
+> Em 17-02-2013 22:03, Charles A Edwards escreveu:
+>> 1/1:powermanga        #########################
+>> mv: cannot stat ‘/var/lib/games/powermanga.hi’: No such file or
+>> directory
+>> No such file or directory
+>> warning: %post(powermanga-0.91-2.mga3.x86_64)
+>> scriptlet failed, exit status 1
+>> ERROR: 'script' failed for
+>> powermanga-0.91-2.mga3.x86_64:
+>> 
+>
+> Yes, I could not find a nice way to only move file if it exists : something 
+> like below fails. any hints?
+>
+> [ -f %{_localstatedir}/lib/games/%{name}.hi ] && mv  %{_localstatedir}/lib/games/%{name}.hi  %{_localstatedir}/games/%{name}/%{name}.hi
+
+That is a logical expression, && means both sides need to be true, so 
+the line fails when the file doesn't exist. You wanted something like:
+if [ -f %{_localstatedir}/lib/games/%{name}.hi ]; then
+    mv  %{_localstatedir}/lib/games/%{name}.hi %{_localstatedir}/games/%{name}/%{name}.hi
+fi
+
+
+     Christiaan
+
+ + + + + + + + + + + + + + + + +
+

+ +
+More information about the Mageia-dev +mailing list
+ -- cgit v1.2.1