From: biao716.wang Date: Sat, 6 May 2023 08:02:12 +0000 (+0900) Subject: remove dependency for python2.x X-Git-Tag: accepted/tools/devbase/tools/20250527.103838~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c1df06b1ec5a9a2e2bb01d132edc3fcabd7a25d;p=tools%2Fyum.git remove dependency for python2.x Change-Id: I2dd6eb32c265070d0fd7ec2c3be50d4c7cd6534d Signed-off-by: biao716.wang --- diff --git a/bin/yum-updatesd.py b/bin/yum-updatesd.py index 5f2c9df..8c8cf6c 100755 --- a/bin/yum-updatesd.py +++ b/bin/yum-updatesd.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import sys, os import optparse diff --git a/bin/yum.py b/bin/yum.py index 86c607c..4d3bba8 100755 --- a/bin/yum.py +++ b/bin/yum.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import sys try: import yum diff --git a/callback.py b/callback.py index 4962a82..d37f351 100644 --- a/callback.py +++ b/callback.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/cli.py b/cli.py index 4cdb752..7cad6af 100644 --- a/cli.py +++ b/cli.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/debian/control b/debian/control index 1411e33..aa50f4b 100755 --- a/debian/control +++ b/debian/control @@ -19,7 +19,6 @@ Depends: python3, python3-urlgrabber, rpm (>= 4.4.1), ${misc:Depends}, - ${python3:Depends}, ${shlibs:Depends} Description: Advanced front-end for rpm Yum (Yellow dog Updater, Modified) is an automatic updater and package diff --git a/output.py b/output.py index 6f23ccb..5852abd 100755 --- a/output.py +++ b/output.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t """This handles actual output from the cli""" diff --git a/po/pygettext.py b/po/pygettext.py index 4a16a04..1847173 100644 --- a/po/pygettext.py +++ b/po/pygettext.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python33 # Originally written by Barry Warsaw # # minimally patched to make it even more xgettext compatible diff --git a/rpmUtils/__init__.py b/rpmUtils/__init__.py index 3c230db..30bf63f 100644 --- a/rpmUtils/__init__.py +++ b/rpmUtils/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt class RpmUtilsError(Exception): diff --git a/rpmUtils/arch.py b/rpmUtils/arch.py index b3db11d..3217a69 100644 --- a/rpmUtils/arch.py +++ b/rpmUtils/arch.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # import os diff --git a/rpmUtils/miscutils.py b/rpmUtils/miscutils.py index e33bfbf..41ece30 100644 --- a/rpmUtils/miscutils.py +++ b/rpmUtils/miscutils.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/rpmUtils/oldUtils.py b/rpmUtils/oldUtils.py index d8cca3c..0648e34 100644 --- a/rpmUtils/oldUtils.py +++ b/rpmUtils/oldUtils.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt import rpm import types diff --git a/rpmUtils/transaction.py b/rpmUtils/transaction.py index 3d46ab4..7a499d3 100644 --- a/rpmUtils/transaction.py +++ b/rpmUtils/transaction.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # Client code for Update Agent diff --git a/rpmUtils/updates.py b/rpmUtils/updates.py index 8f655ff..ccaa6cb 100644 --- a/rpmUtils/updates.py +++ b/rpmUtils/updates.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/utils.py b/utils.py index 4176084..3e60106 100644 --- a/utils.py +++ b/utils.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum-updatesd.py b/yum-updatesd.py index f18a7d1..1c5b2d1 100644 --- a/yum-updatesd.py +++ b/yum-updatesd.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/Errors.py b/yum/Errors.py index c51d825..6889b93 100644 --- a/yum/Errors.py +++ b/yum/Errors.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/__init__.py b/yum/__init__.py index fc9cf30..97e3ca4 100644 --- a/yum/__init__.py +++ b/yum/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/callbacks.py b/yum/callbacks.py index f8ca2a9..51870b2 100644 --- a/yum/callbacks.py +++ b/yum/callbacks.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/config.py b/yum/config.py index 52f60ec..850e7dc 100644 --- a/yum/config.py +++ b/yum/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/yum/depsolve.py b/yum/depsolve.py index c8eafa3..6971d4c 100644 --- a/yum/depsolve.py +++ b/yum/depsolve.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/failover.py b/yum/failover.py index bca9651..86f2d0c 100644 --- a/yum/failover.py +++ b/yum/failover.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/history.py b/yum/history.py index a5fef73..d2ab483 100644 --- a/yum/history.py +++ b/yum/history.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/i18n.py b/yum/i18n.py index 9ac1ed9..a8285a9 100755 --- a/yum/i18n.py +++ b/yum/i18n.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/metalink.py b/yum/metalink.py index 8876e3f..e53df14 100755 --- a/yum/metalink.py +++ b/yum/metalink.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/packageSack.py b/yum/packageSack.py index 05c9101..c6189e3 100644 --- a/yum/packageSack.py +++ b/yum/packageSack.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/packages.py b/yum/packages.py index b0cc071..bde0eae 100644 --- a/yum/packages.py +++ b/yum/packages.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/pkgtag_db.py b/yum/pkgtag_db.py index 1172717..41a6ef2 100644 --- a/yum/pkgtag_db.py +++ b/yum/pkgtag_db.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/repoMDObject.py b/yum/repoMDObject.py index a1d5919..eac1c45 100755 --- a/yum/repoMDObject.py +++ b/yum/repoMDObject.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/repos.py b/yum/repos.py index d0db82c..ce7696b 100644 --- a/yum/repos.py +++ b/yum/repos.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/rpmsack.py b/yum/rpmsack.py index d2635c4..7c98188 100644 --- a/yum/rpmsack.py +++ b/yum/rpmsack.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/rpmtrans.py b/yum/rpmtrans.py index 8a3e9e9..12cee9b 100644 --- a/yum/rpmtrans.py +++ b/yum/rpmtrans.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py index 3039381..1801e7b 100644 --- a/yum/sqlitesack.py +++ b/yum/sqlitesack.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/yum/sqlutils.py b/yum/sqlutils.py index 3e4cfde..008634b 100644 --- a/yum/sqlutils.py +++ b/yum/sqlutils.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -tt +#!/usr/bin/python3 -tt # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License # as published by the Free Software Foundation diff --git a/yum/update_md.py b/yum/update_md.py index fe94080..6c05bac 100644 --- a/yum/update_md.py +++ b/yum/update_md.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yumcommands.py b/yumcommands.py index 7205d62..44ef396 100644 --- a/yumcommands.py +++ b/yumcommands.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python33 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or diff --git a/yummain.py b/yummain.py index 21d97ac..f9f2520 100755 --- a/yummain.py +++ b/yummain.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -t +#!/usr/bin/python3 -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or