Bug 4607 - Installer crashes if you have multiple instances of same package
Summary: Installer crashes if you have multiple instances of same package
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server Installer (show other bugs)
Version: 4.0.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.13.0
Assignee: William Sjöblom
URL:
Keywords: nikle_tester, prosaic
Depends on:
Blocks:
 
Reported: 2013-04-22 09:47 CEST by Peter Åstrand
Modified: 2021-03-16 12:27 CET (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Peter Åstrand cendio 2013-04-22 09:47:41 CEST
I had two VNC packages on my machine:

thinlinc-vnc-server-4.0.0post-3920.x86_64
thinlinc-vnc-server-4.0.0post-3920.i686

This causes the installer to crash with:

2013-04-22 09:46:04,062: Traceback (most recent call last):
2013-04-22 09:46:04,062:   File "/home/tlbuilder/buildarea/trunk/ctc/server-bundle/libs/tlinstaller", line 299, in IIi
2013-04-22 09:46:04,062:     oOoOO0 = iI1ii1Ii ( )
2013-04-22 09:46:04,062:   File "/home/tlbuilder/buildarea/trunk/ctc/server-bundle/libs/tlinstaller", line 173, in iI1ii1Ii
2013-04-22 09:46:04,062:     oOoOO0 = rpm . determine_upgrade ( oooo000 )
2013-04-22 09:46:04,062:   File "/home/tlbuilder/buildarea/trunk/ctc/server-bundle/libs/thinlinc/rpm.py", line 181, in determine_upgrade
2013-04-22 09:46:04,062:     i1 = get_installed_infos ( iI1ii1Ii [ "name" ] )
2013-04-22 09:46:04,062:   File "/home/tlbuilder/buildarea/trunk/ctc/server-bundle/libs/thinlinc/rpm.py", line 63, in get_installed_infos
2013-04-22 09:46:04,063:     I11 , Oo0o0000o0o0 , oOo0oooo00o , oO0o0o0ooO0oO = O0oO . split ( )
2013-04-22 09:46:04,063: ValueError: too many values to unpack
Comment 1 William Sjöblom cendio 2021-03-15 10:54:22 CET
Fixed as of revision r36353.
Comment 2 William Sjöblom cendio 2021-03-15 11:24:01 CET
To reproduce, two conflicting versions of the same `thinlinc-<package>.rpm' packages needs to be installed before running `install-server'. 

Instructions:
1. Download a Jenkins server-bundle from a couple of days ago and install one of the RPMs under `packages/' using `rpm -i --force package/thinlinc-<package>.rpm'
2. Download a different Jenkins server-bundle from a couple of days ago and install the same RPM under `packages/' using `rpm -i --force package/thinlinc-<package>.rpm'
3. Download the latest nightly-build and run `server-bundle/install-server'
Comment 3 Niko Lehto cendio 2021-03-16 12:27:50 CET
I could reproduce this issue on 4.12.0 and this works good on nightly build (6778).

Note You need to log in before you can comment on or make changes to this bug.