Skip to content

Commit e8c12eb

Browse files
committed
Fix-up pkginfo command
Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
1 parent 5d1ee65 commit e8c12eb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ivpm/cmds/cmd_pkg_info.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ def __call__(self, args):
4040
pkgs.append(rgy.getPkg(pn))
4141

4242
if args.type == "incdirs":
43-
paths = rgy.getIncDirs(kind=args.kind, filter=lambda x: x in pkgs)
43+
paths = rgy.getIncDirs(kind=args.kind, filter=lambda x: x in pkg_names)
4444
print("%s" % " ".join(paths))
4545
elif args.type == "paths":
46-
paths = rgy.getPaths(kind=args.kind, filter=lambda x: x in pkgs)
46+
paths = rgy.getPaths(kind=args.kind, filter=lambda x: x in pkg_names)
4747
print("%s" % " ".join(paths))
4848
elif args.type == "libdirs":
49-
paths = rgy.getLibDirs(kind=args.kind, filter=lambda x: x in pkgs)
49+
paths = rgy.getLibDirs(kind=args.kind, filter=lambda x: x in pkg_names)
5050
print("%s" % " ".join(paths))
5151
elif args.type == "libs":
52-
paths = rgy.getLibs(kind=args.kind, filter=lambda x: x in pkgs)
52+
paths = rgy.getLibs(kind=args.kind, filter=lambda x: x in pkg_names)
5353
print("%s" % " ".join(paths))
5454
else:
5555
raise Exception("Unimplemented pkg-info kind %s" % args.type)

src/ivpm/pkg_info/pkg_info_rgy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def getIncDirs(self, kind=None, filter : Callable=None):
8787
pkg = self.info_m[pkg_id]
8888
if filter is not None and not filter(pkg.name):
8989
continue
90-
pkg_incdirs = pkg.getIncDirs(kind)
90+
pkg_incdirs = pkg.getIncDirs()
9191

9292
if pkg_incdirs is not None:
9393
for ld in pkg_incdirs:

0 commit comments

Comments
 (0)