forked from Mirror/pmbootstrap
Fix detection of an aport in multiple subfolders
This commit is contained in:
parent
277854e80f
commit
09fcdba597
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ def find_aport(args, package, must_exist=True):
|
||||||
|
|
||||||
# Search in packages
|
# Search in packages
|
||||||
paths = glob.glob(args.aports + "/*/" + package)
|
paths = glob.glob(args.aports + "/*/" + package)
|
||||||
if len(paths) > 2:
|
if len(paths) > 1:
|
||||||
raise RuntimeError("Package " + package + " found in multiple"
|
raise RuntimeError("Package " + package + " found in multiple"
|
||||||
" aports subfolders. Please put it only in one"
|
" aports subfolders. Please put it only in one"
|
||||||
" folder.")
|
" folder.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue