Bug 52813 - 55user_agent Python syntax error during upgrade
55user_agent Python syntax error during upgrade
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 4.4-7-errata
Assigned To: Florian Best
Jürn Brodersen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-02-19 13:22 CET by Florian Best
Modified: 2021-03-10 15:24 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
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 Florian Best univentionstaff 2021-02-19 13:22:18 CET
During the upgrade to UCS 5.0 I see the following error message:

File: /etc/apt/apt.conf.d/55user_agent
  File "<stdin>", line 24
    }; ''' % user_agent
         ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('''
Acquire
{
  http
  {
	 User-Agent "%s")?
Comment 1 Philipp Hahn univentionstaff 2021-02-19 13:30:32 CET
Please cherry-pick 87f6e3d8a704f3035a1b6782fcfab34d65af9e96 if possible
Comment 2 Florian Best univentionstaff 2021-02-19 13:43:11 CET
Cherry-Picked git:5a9549f7f0f795678c272c9646011d088793f88f and git:87f6e3d8a704f3035a1b6782fcfab34d65af9e96 from UCS 5.
Added an additional commit.

univention-updater.yaml
582d9dc72eec | Bug #52813 up: Convert UCR templates to Python 3

univention-updater (14.0.3-9)
3c2c9e7fd294 | Bug #52813 up: Convert UserAgent to Python3
582d9dc72eec | Bug #52813 up: Convert UCR templates to Python 3
582c9bd9332c | Bug #52813 up: Convert UCR template to Python 3
Comment 3 Jürn Brodersen univentionstaff 2021-03-09 15:55:31 CET
What I tested:
apt update -> OK
ucr commit /etc/cron.d/univention-updater-check /etc/apt/apt.conf.d/55user_agent /etc/logrotate.d/univention-updater /etc/apt/sources.list.d/15_ucs-online-version.list /etc/apt/sources.list.d/20_ucs-online-component.list -> OK
jenkins -> OK

-> Verified