6321: installed rcs and tried to make an archive
svn: r21082
This commit is contained in:
parent
e677f40cab
commit
1f825771b5
@ -50,7 +50,7 @@ else:
|
|||||||
import logging
|
import logging
|
||||||
LOG = logging.getLogger(".DbManager")
|
LOG = logging.getLogger(".DbManager")
|
||||||
|
|
||||||
from gramps.gen.constfunc import win
|
from gramps.gen.constfunc import win, UNITYPE
|
||||||
if win():
|
if win():
|
||||||
_RCS_FOUND = os.system("rcs -V >nul 2>nul") == 0
|
_RCS_FOUND = os.system("rcs -V >nul 2>nul") == 0
|
||||||
if _RCS_FOUND and "TZ" not in os.environ:
|
if _RCS_FOUND and "TZ" not in os.environ:
|
||||||
@ -798,6 +798,9 @@ def find_revisions(name):
|
|||||||
get_next = False
|
get_next = False
|
||||||
if os.path.isfile(name):
|
if os.path.isfile(name):
|
||||||
for line in proc.stdout:
|
for line in proc.stdout:
|
||||||
|
if sys.version_info[0] >= 3 and not isinstance(line, UNITYPE):
|
||||||
|
# we assume utf-8 ...
|
||||||
|
line = line.decode('utf-8')
|
||||||
match = rev.match(line)
|
match = rev.match(line)
|
||||||
if match:
|
if match:
|
||||||
rev_str = copy.copy(match.groups()[0])
|
rev_str = copy.copy(match.groups()[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user