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 4)
Currently displaying revision
4
,
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