Bug 15457 - Updates werden trotzdem --updateto eingespielt
Updates werden trotzdem --updateto eingespielt
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 2.2
All All
: P3 normal (vote)
: UCS 2.3
Assigned To: Sönke Schwardt-Krummrich
Daniel Hofmann
:
: 16296 (view as bug list)
Depends on:
Blocks: 14432
  Show dependency treegraph
 
Reported: 2009-08-21 11:01 CEST by Andreas Büsching
Modified: 2010-01-11 09:31 CET (History)
3 users (show)

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 Andreas Büsching univentionstaff 2009-08-21 11:01:56 CEST
Das ist bei einem Testsystem aufgefallen: Ein DC Slave war auf der Version 2.2-1 und hat das im Repository verfügbare 2.2-2 mit dem folgenden Aufruf eingespielt:


**** Starting univention-updater with parameter=['/usr/sbin/univention-updater', 'net', '--updateto=2.1-2', '--reboot=now']
Version=2.2
Patchlevel=1
using tempdir = /tmp/tmpaLCKxP
starting net mode
--->DBG:update_available(mode=net, cdrom_mount_point=/cdrom, reboot=now, internal=1, iso=None)
Nextupdate: [2.2-2]
Update to = 2.2-2

Es sieht danach aus, als ob die Begrenzung mit --updateto nicht mehr funktioniert.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2009-10-01 17:50:56 CEST
Der Updater hat grundsätzlich nur die aktuelle Version mit der unter --updateto angegebenen Version verglichen. Waren die Versionen gleich, hat der Installer das Update beendet. 
Waren sie ungleich, wurde das Update durchgeführt. Dabei war es unerheblich, ob die Updateto-Version kleiner als die aktuelle Systemversion war.

Der Update prüft jetzt, ob die Updateto-Version kleiner-gleich der aktuellen Version ist und bricht ab, sofern dies der Fall ist.

Changelogeintrag ist vorhanden. Paket ist neu gebaut.
Comment 2 Daniel Hofmann univentionstaff 2009-10-27 14:55:02 CET
master2364unmaintained:/etc/apt/sources.list.d # univention-updater net --updateto 1.3-2
System is up to date (UCS 2.3-0)

Sollte nach Codebetrachtung auch dann funktionieren, wenn tatsächlich eine neuere Version vorhanden ist.
Comment 3 Stefan Gohmann univentionstaff 2009-12-21 08:46:24 CET
UCS 2.3 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden: "Clone This Bug".
Comment 4 Stefan Gohmann univentionstaff 2010-01-11 09:31:08 CET
*** Bug 16296 has been marked as a duplicate of this bug. ***