diff options
Diffstat (limited to 'BuildManager/package.py')
-rw-r--r-- | BuildManager/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BuildManager/package.py b/BuildManager/package.py index b9646a5..031e36e 100644 --- a/BuildManager/package.py +++ b/BuildManager/package.py @@ -4,6 +4,7 @@ from collections import UserList import subprocess import os import re +import codecs class BuildManagerFileError(Error): pass class BuildManagerPackageError(Error): pass @@ -98,7 +99,7 @@ class _package_spec(_package): self.builddir = os.path.dirname(os.path.dirname(self.absfile)) ret = os.system("mkdir -p %s/{SOURCES,SPECS,BUILD,SRPMS,RPMS,BUILDROOT}" % self.builddir) try: - f = open(self.spec,"r") + f = codecs.open(self.spec, "r", 'utf-8', errors = "replace") except IOError as e: raise BuildManagerFileError("couldn't open spec file %s" % self.absfile) defines = {} |