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

zezinho lists.jjorge at free.fr
Mon Feb 18 11:17:04 CET 2013


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


More information about the Mageia-dev mailing list