summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* desktop.eclass: Add missing ||die when writing to filesMichał Górny2018-08-091-3/+5
|
* desktop.eclass: domenu, remove unnecessary nested loopMichał Górny2018-08-091-5/+3
|
* desktop.eclass: domenu, fix potential overflow in exit statusMichał Górny2018-08-091-2/+2
| | | | | | | While increasing exit status for each failure may seem brilliant at first, it serves no purpose and has an overflow risk. For example, if domenu counted 256 failures, the exit status would be truncated to 0 (success).
* desktop.eclass: domenu, fix dying on non-existing filesMichał Górny2018-08-091-6/+4
| | | | | | | | | | | | | The weird logic in domenu had an explicit separate clause for unsuccessful return on non-existing files. This worked fine before EAPI 4 since '|| die' was mandatory. However, since 'doins' started dying on its own, developers have assumed the same for 'domenu' and stopped checking the exit status. As a result, missing files are now silently ignored. Change the logic to explicitly die when the file does not exist. To provide the best interoperability and avoid code duplication, just let 'doins' die on its own.
* desktop.eclass: Sanitize insoptsMichał Górny2018-06-131-0/+5
| | | | | Sanitize insopts when calling doins, in order to avoid prior insopts calls accidentally affecting do*/new* functions defined by the eclass.
* desktop.eclass: Split off desktop, menu, and icon functions from eutils.Ulrich Müller2017-11-301-0/+395
Split off functions make_desktop_entry, make_session_desktop, domenu, newmenu, doicon, and newicon from eutils.eclass into a dedicated desktop.eclass. These functions are independent of the rest of eutils, therefore moving them into their own eclass will help clarifying eclass inheritance in ebuilds. For backwards compatibility, eutils inherits the new eclass in existing EAPIs.