Re: Packaging:ScriptletSnippets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2012-01-23 at 21:24 +0000, Sérgio Basto wrote:
> Hi,
> from here 
> http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
> I see 
> /usr/bin/update-desktop-database &> /dev/null || :
> 
> what does mean this part of the code "|| :" ? 

|| is logical-OR with optimization (i.e., iff the first command fails,
do the second). : is the null command. Therefore, this command always
returns a success error code (zero), and so an error with
update-desktop-database does not terminate the RPM transaction with an
error message.

-Chris

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux