Fix detection of an aport in multiple subfolders

This commit is contained in:
Luca Weiss 2018-09-28 22:56:38 +00:00 committed by Oliver Smith
parent 277854e80f
commit 09fcdba597
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def find_aport(args, package, must_exist=True):
# Search in packages
paths = glob.glob(args.aports + "/*/" + package)
if len(paths) > 2:
if len(paths) > 1:
raise RuntimeError("Package " + package + " found in multiple"
" aports subfolders. Please put it only in one"
" folder.")