Bug 16668 - univention-repo-update kopiert preup.sh und postup.sh im zweiten Durchlauf
univention-repo-update kopiert preup.sh und postup.sh im zweiten Durchlauf
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - Repository administration
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 2.3
Assigned To: Sönke Schwardt-Krummrich
Andre Fenske
:
Depends on: 14412
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-02 11:34 CET by Sönke Schwardt-Krummrich
Modified: 2009-12-21 08:48 CET (History)
1 user (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 Sönke Schwardt-Krummrich univentionstaff 2009-12-02 11:34:55 CET
preup.sh und postup.sh werden auf einem 2.3-Backup von "univention-repository-update net" erst im zweiten Durchlauf kopiert.

root@backup:/# find /var/lib/univention-repository/mirror/2.3/maintained/2.3-4/
find: "/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/": Datei oder Verzeichnis nicht gefunden
root@backup:/# univention-repository-update net
Starting the repository synchronisation from master.nstx.de
15.9 KiB will be downloaded into archive.
root@backup:/# find /var/lib/univention-repository/mirror/2.3/maintained/2.3-4/
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/all
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/all/univention-pam_1259747079-1_all.deb
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/all/Packages.gz
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/all/Packages
root@backup:/# univention-repository-update net
Starting the repository synchronisation from master.nstx.de
0.0 bytes will be downloaded into archive.
root@backup:/# find /var/lib/univention-repository/mirror/2.3/maintained/2.3-4/
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/all
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/all/univention-pam_1259747079-1_all.deb
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/all/preup.sh
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/all/Packages.gz
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/all/postup.sh
/var/lib/univention-repository/mirror/2.3/maintained/2.3-4/all/Packages
root@backup:/#
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2009-12-02 14:30:07 CET
Die UCR-Variable repository/mirror/version/end wurde nur einmal beim Start von univention-repository-update eingelesen, aber mehrfach zur Laufzeit verändert. univention-repository-update hat dadurch nur die preup/postup-Skripte bis zur angegebenen Version bezogen.

Das UniventionMirror-Objekt wird jetzt vor jedem internen Mirror-Durchlauf neu initialisiert.

univention-updater wurde neu gebaut.
Changelogeintrag wurde comitted.
Comment 2 Andre Fenske univentionstaff 2009-12-07 13:14:58 CET
Ich hab ein Repository in einem UCS 2.3-0 System eingerichtet und anschließend ein Repository-Fake-Update auf 2.3-1 und auf 2.3-2 durchgeführt.

Die preup.sh und portup.sh Skripte wurden jedes erfolgreich in das Lokale Repository meines Backup-Systems übernommen. => VERIFIED
Comment 3 Stefan Gohmann univentionstaff 2009-12-21 08:48:21 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".