mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-27 23:43:54 +01:00
projects.py: Warn about modules which were not found
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
9a5bc11cd0
commit
6109703ccb
1 changed files with 12 additions and 2 deletions
|
|
@ -85,6 +85,9 @@ class Projects(object):
|
||||||
if self.opt_debug:
|
if self.opt_debug:
|
||||||
print("DEBUG: ", *objs, file = sys.stderr)
|
print("DEBUG: ", *objs, file = sys.stderr)
|
||||||
|
|
||||||
|
def warn(self, *objs):
|
||||||
|
print("WARNING: ", *objs, file = sys.stderr)
|
||||||
|
|
||||||
def err(self, *objs):
|
def err(self, *objs):
|
||||||
print("ERR: ", *objs, file = sys.stderr)
|
print("ERR: ", *objs, file = sys.stderr)
|
||||||
|
|
||||||
|
|
@ -754,7 +757,10 @@ class Projects(object):
|
||||||
scope = 2, add_self=True, names_only=True)
|
scope = 2, add_self=True, names_only=True)
|
||||||
r = ''
|
r = ''
|
||||||
for m in reversed(deps):
|
for m in reversed(deps):
|
||||||
r = r + ' -I' + self.proj_dir(m) + '/include'
|
try:
|
||||||
|
r = r + ' -I' + self.proj_dir(m) + '/include'
|
||||||
|
except:
|
||||||
|
self.warn('No include path for module "{}", ignoring'.format(m))
|
||||||
print(r[1:])
|
print(r[1:])
|
||||||
|
|
||||||
def cmd_path(self, args_):
|
def cmd_path(self, args_):
|
||||||
|
|
@ -827,7 +833,11 @@ class Projects(object):
|
||||||
args = parser.parse_args(args_)
|
args = parser.parse_args(args_)
|
||||||
r = []
|
r = []
|
||||||
for m in args.module:
|
for m in args.module:
|
||||||
r.append(self.proj_dir(m))
|
try:
|
||||||
|
r.append(self.proj_dir(m))
|
||||||
|
except:
|
||||||
|
self.warn('No project directory for module "{}"'.format(module))
|
||||||
|
continue
|
||||||
print(' '.join(r))
|
print(' '.join(r))
|
||||||
|
|
||||||
def cmd_htdocs_dir(self, args_):
|
def cmd_htdocs_dir(self, args_):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue