Search
j0ke.net Open Build Service
>
Projects
>
server:power
>
nut
> nut-python3.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nut-python3.patch of Package nut (Revision 5)
Currently displaying revision
5
,
show latest
--- autogen.sh.orig 2020-06-24 23:12:27.109695398 +0200 +++ autogen.sh 2020-06-24 23:13:21.502288914 +0200 @@ -6,7 +6,7 @@ # re-generate files needed by configure, and created otherwise at 'dist' time if [ ! -f scripts/augeas/nutupsconf.aug.in ] then - if python -c "import re,glob,codecs"; then + if python3 -c "import re,glob,codecs"; then echo "Regenerating Augeas ups.conf lens..." cd scripts/augeas && { ./gen-nutupsconf-aug.py || exit 1 @@ -14,7 +14,7 @@ } else echo "----------------------------------------------------------------------" - echo "Error: Python is not available." + echo "Error: Python3 is not available." echo "Unable to regenerate Augeas ups.conf lens." echo "----------------------------------------------------------------------" exit 1 --- scripts/augeas/gen-nutupsconf-aug.py.orig 2020-06-24 23:14:09.990289656 +0200 +++ scripts/augeas/gen-nutupsconf-aug.py 2020-06-24 23:14:20.346290466 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) 2010 - Arnaud Quette <arnaud.quette@gmail.com> # # This program is free software; you can redistribute it and/or modify --- ./tools/gitlog2changelog.py.orig 2020-06-24 23:23:42.310626145 +0200 +++ ./tools/gitlog2changelog.py 2020-06-24 23:23:54.974626228 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2008 Marcus D. Hanwell <marcus@cryos.org> # Minor changes for NUT by Charles Lepple # Distributed under the terms of the GNU General Public License v2 or later --- ./tools/nut-snmpinfo.py.orig 2020-06-24 23:23:35.654626962 +0200 +++ ./tools/nut-snmpinfo.py 2020-06-24 23:24:06.022625839 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) 2011-2019 Eaton # Authors: Frederic Bohe <FredericBohe@Eaton.com> # Arnaud Quette <ArnaudQuette@Eaton.com>