[Bug 439177] New: Python deprecated code breaks osc build
https://bugzilla.novell.com/show_bug.cgi?id=439177 Summary: Python deprecated code breaks osc build Product: openSUSE.org Version: unspecified Platform: Other OS/Version: All Status: NEW Keywords: dogfood Severity: Major Priority: P5 - None Component: BuildService AssignedTo: poeml@novell.com ReportedBy: werner@novell.com QAContact: adrian@novell.com Found By: --- I've seen a break in /usr/lib64/python2.6/site-packages/osc/fetch.py on line 149 as python 2.6 seems to mark the os.popen4 as deprecated. Sugessted solution is simply to add import subprocess and replace (i, o) = os.popen4(['/bin/rpm', '-K'] + pac_list) with (i, o) = subprocess.Popen(['/bin/rpm', '-K'] + pac_list) maybe with a version check around to make this code work even with older python versions. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439177 User poeml@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=439177#c1 Peter Poeml <poeml@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Peter Poeml <poeml@novell.com> 2008-10-27 07:34:05 MDT --- To the best of my knowledge, this is already fixed, and the fixed osc package is afair already checked in in Factory. A Factory sync is ongoing today, maybe it turns up today? Thank you for the report, and for the fix! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439177 User suse-tux@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=439177#c2 Marcus Hüwe <suse-tux@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-tux@gmx.de --- Comment #2 from Marcus Hüwe <suse-tux@gmx.de> 2008-10-27 14:37:36 MDT --- (In reply to comment #1 from Peter Poeml)
To the best of my knowledge, this is already fixed, and the fixed osc package is afair already checked in in Factory.
Yep all known python26 issues should be fixed in the latest osc version (the one available in openSUSE:Tools). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439177 User poeml@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=439177#c3 Peter Poeml <poeml@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Peter Poeml <poeml@novell.com> 2008-10-27 15:04:44 MDT --- Factory should have the same package as openSUSE:Tools in fact. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com