Bug 29332 - univention-actualise gibt Fehlerexitcodes nicht zurück
univention-actualise gibt Fehlerexitcodes nicht zurück
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 3.1
Other Linux
: P5 enhancement (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-20 15:48 CET by Sönke Schwardt-Krummrich
Modified: 2018-04-14 13:51 CEST (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2012-11-20 15:48:00 CET
univention-actualise gibt unter UCS 3.1 bei Fehlern in main() immer den 
Exitcode 0 zurück, auch wenn dort explizit sys.exit(EXITCODE) aufgerufen wird.

Die Exception SystemExit wird außerhalb von main() abgefangen und der Exitcode nicht weitergereicht. Achtung: in univention-actualise gibt es immer noch die negierten Rückgabewerte:
0 ==> kein Update vorhanden / System ist aktuell
1 ==> Update vorhanden / System ist nicht aktuell

+++ This bug was initially created as a clone of Bug #27171 +++

Im Init-Skript /etc/init.d/univention-maintenance wird ein
"univention-actualise --check" aufgerufen, der aber nur auf Updates und nicht
auf noch einzuspielende Pakete aus der Richtlinie prüft.

Folgendes Beispiel geht daher nicht:

- mit "univention-upgrade --noninteractive" und alle Updates einspielen
- neue Richtlinien definieren, mit denen ein neues, zusätzliches Paket beim
Shutdown installiert werden soll
Comment 1 Stefan Gohmann univentionstaff 2017-06-16 20:36:34 CEST
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4.

If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
Comment 2 Stefan Gohmann univentionstaff 2017-08-08 07:09:57 CEST
This issue has been filed against UCS 3.1.

UCS 3.1 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.