Bug 22530 - univention-repository-updater verträgt keine Version in component/version
univention-repository-updater verträgt keine Version in component/version
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - Repository administration
UCS 2.4
Other Linux
: P5 normal (vote)
: UCS 2.4-3
Assigned To: Sönke Schwardt-Krummrich
Felix Botner
:
: 23030 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-16 12:22 CEST by Janis Meybohm
Modified: 2011-09-14 10:57 CEST (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
Fix repository/online/component/$comp/version=2.3,2.4 not being converted to UCS_Version() instance. (995 bytes, patch)
2011-05-16 12:25 CEST, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2011-05-16 12:22:32 CEST
# ucr search version
mail/cyrus/version: 2.2
repository/mirror/version/end: 2.4-2
repository/mirror/version/start: 2.3-0
repository/online/component/opsi/version: 2.3,2.4
repository/online/component/ucsschool/version: 2.3,2.4
update/umc/nextversion: true
version/patchlevel: 2
version/releasename: golden beech
version/security-patchlevel: 3
version/version: 2.4

# univention-repository-update net
Traceback (most recent call last):
  File "/usr/sbin/univention-repository-update", line 259, in ?
    update_net( options )
  File "/usr/sbin/univention-repository-update", line 166, in update_net
    mirror.run()
  File "/usr/lib/python2.4/site-packages/univention/updater/mirror.py", line 213, in run
    self.mirror_update_scripts()
  File "/usr/lib/python2.4/site-packages/univention/updater/mirror.py", line 109, in mirror_update_scripts
    for server, struct, phase, path, script in UniventionUpdater.get_sh_files(all_repos):
  File "/usr/lib/python2.4/site-packages/univention/updater/tools.py", line 1343, in get_sh_files
    for server, struct in repositories:
  File "/usr/lib/python2.4/site-packages/univention/updater/tools.py", line 913, in _iterate_component_repositories
    for ver in self._iterate_versions(struct, version, version, parts, archs, server):
  File "/usr/lib/python2.4/site-packages/univention/updater/tools.py", line 822, in _iterate_versions
    (ver.major, ver.minor, ver.patchlevel) = (start.major, start.minor, start.patchlevel)
AttributeError: 'str' object has no attribute 'major'
Comment 1 Philipp Hahn univentionstaff 2011-05-16 12:25:01 CEST
Created attachment 3273 [details]
Fix repository/online/component/$comp/version=2.3,2.4 not being converted to UCS_Version() instance.

Ungetestet.
Comment 2 Roman Asendorf univentionstaff 2011-05-27 14:41:09 CEST
Patched tools.py as suggested. Works for me.
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2011-07-25 13:43:49 CEST
*** Bug 23030 has been marked as a duplicate of this bug. ***
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2011-07-26 11:06:21 CEST
Patch wurde übernommen
univention-updater wurde neu gebaut
Changelogeintrag wurde erstellt
Comment 5 Felix Botner univentionstaff 2011-08-04 18:17:58 CEST
OK, war nachvollziehbar und ist behoben. Changelog Eintrag vorhanden
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2011-09-14 10:57:07 CEST
UCS 2.4-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".