Commit 9b9a3140 authored by Armin Rigo's avatar Armin Rigo

Merged in dcrosta/pypy/fix-package-py (pull request #260)

fix minor bug in package.py
parents 714e6bed 8ac5aec5
...@@ -74,7 +74,7 @@ def generate_license_linux(basedir, options): ...@@ -74,7 +74,7 @@ def generate_license_linux(basedir, options):
dirs = glob.glob(options.license_base + "/" +pat) dirs = glob.glob(options.license_base + "/" +pat)
if not dirs: if not dirs:
raise ValueError, "Could not find "+ options.license_base + "/" + pat raise ValueError, "Could not find "+ options.license_base + "/" + pat
if len(dirs) > 2: if len(dirs) > 1:
raise ValueError, "Multiple copies of "+pat raise ValueError, "Multiple copies of "+pat
dir = dirs[0] dir = dirs[0]
with open(os.path.join(dir, fname)) as fid: with open(os.path.join(dir, fname)) as fid:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment