From 224443ff848a8f0e7ac3bfcacbef015b23f7c074 Mon Sep 17 00:00:00 2001 From: Haris Okanovic Date: Mon, 25 Nov 2019 13:37:23 -0600 Subject: [PATCH] opkg-utils: Switch to python3 Switch all py script shebangs to `#!/usr/bin/env python3`. Testing: Successfully ran the following on an IPK feed in $PWD: * opkg-make-index --checksum md5 --checksum sha256 -p Packages -m -l Packages.filelist . * opkg-graph-deps ./Packages * opkg-compare-indexes ./ ./ * opkg-list-fields font-alias_1.0.3-r2.3.204_all.ipk * opkg-show-deps -p Packages font-alias I'm not sure how to correctly run opkg-update-index and opkg-unbuild. I attempted to run both with `-h`, no parse errors. My motivation for this change is to add xz support to opkg filelists, which requires python3's version of tarfile. See previous commits in this series for details. However, this is probably a good change in general since python2 support is starting to dwindle. Signed-off-by: Haris Okanovic Signed-off-by: Alejandro del Castillo --- opkg-compare-indexes | 2 +- opkg-graph-deps | 2 +- opkg-list-fields | 2 +- opkg-make-index | 2 +- opkg-show-deps | 2 +- opkg-unbuild | 2 +- opkg-update-index | 2 +- opkg.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/opkg-compare-indexes b/opkg-compare-indexes index 45134e2..28cbcac 100755 --- a/opkg-compare-indexes +++ b/opkg-compare-indexes @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-only from __future__ import absolute_import from __future__ import print_function diff --git a/opkg-graph-deps b/opkg-graph-deps index 316057a..11df10f 100755 --- a/opkg-graph-deps +++ b/opkg-graph-deps @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-only from __future__ import absolute_import from __future__ import print_function diff --git a/opkg-list-fields b/opkg-list-fields index 434f2ae..b2de5c3 100755 --- a/opkg-list-fields +++ b/opkg-list-fields @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-only from __future__ import absolute_import from __future__ import print_function diff --git a/opkg-make-index b/opkg-make-index index 6c6ecad..ea104fb 100755 --- a/opkg-make-index +++ b/opkg-make-index @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-only """ Utility to create opkg compatible indexes diff --git a/opkg-show-deps b/opkg-show-deps index f345087..f28ce5b 100755 --- a/opkg-show-deps +++ b/opkg-show-deps @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-only from __future__ import absolute_import from __future__ import print_function diff --git a/opkg-unbuild b/opkg-unbuild index 9683de7..3189527 100755 --- a/opkg-unbuild +++ b/opkg-unbuild @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-only from __future__ import absolute_import from __future__ import print_function diff --git a/opkg-update-index b/opkg-update-index index 43f1234..a60f4b6 100755 --- a/opkg-update-index +++ b/opkg-update-index @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-only from __future__ import absolute_import diff --git a/opkg.py b/opkg.py index 23fed96..ba947c2 100644 --- a/opkg.py +++ b/opkg.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2001 Alexander S. Guy # Andern Research Labs