Skip to content

REVIEW: use of python svn 1.0.1 #23

@mscheinert

Description

@mscheinert

Describe the bug
It seems the svn module (svn.local) is only used to import the exceptions svn.exception.SvnException after a subprocess call, e.g.:

nemo-simsar/src/mkReadme.py

Lines 377 to 388 in 9377f51

if (LNGIT == False):
try:
#repo = subprocess.check_output("svn info | awk '/^Kind:/ {print $2}'", shell=True).strip()
repo = subprocess.check_output("LC_ALL=C svn info | awk '/^Kind:/ {print $2}'", shell=True).strip()
except svn.exception.SvnException:
print(BLUE + "This is not an svn repo \n" + NORMAL)
except OSError as e:
print("Error - ", e)
else:
print(BLUE + "This is an SVN Repo" + NORMAL)
global LNSVN
LNSVN=True

If we find a workaround for this, we could drop the svn module (GPL-2) completely...

Additional context
The svn python package is distributed under GPL-2 which has implications for products linking to this library! (It's not the LGPL!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions