Lines Matching refs:targetpath

37 def find_target_file(targetpath, d, pkglist=None):  argument
55 if fnmatch.fnmatchcase(targetpath, d.expand(pthspec)):
58 targetpath_re = re.compile(r'\s+(\$D)?%s(\s|$)' % targetpath)
80 if fnmatch.fnmatchcase(fullpth, targetpath):
81 recipes[targetpath].append(pn)
84 if 'update-alternatives --install %s ' % targetpath in scriptval:
85 recipes[targetpath].append('?%s' % pn)
87 recipes[targetpath].append('!%s' % pn)
98 def determine_file_source(targetpath, rd): argument
107 elements = check_do_install(rd, targetpath)
191 def check_do_install(rd, targetpath): argument
193 instpath = os.path.abspath(os.path.join(rd.getVar('D'), targetpath.lstrip('/')))
234 recipes = {args.targetpath: [args.recipe],}
237 recipes = find_target_file(args.targetpath, tinfoil.config_data)
239 logger.error('%s cannot be handled by this tool: %s' % (args.targetpath, e))
242 …ng path %s - this may be because the recipe packaging it has not been built yet' % args.targetpath)
249 for targetpath, pnlist in recipes.items():
263 …er, selecting it by default - you should double check other recipes' % (args.targetpath, selectpn))
266 logger.debug('Selecting recipe %s for file %s' % (selectpn, args.targetpath))
268 …pending on what modifications these postinstall scripts make.' % (args.targetpath, '\n '.join(pos…
273 sourcefile, instelements, modpatches = determine_file_source(args.targetpath, rd)
279 …eed to remove or replace this patch in order to replace the file.' % (args.targetpath, sourcepath))
284 …logger.warning('File %s is modified by the following patches:\n %s' % (args.targetpath, '\n '.jo…
293 if os.path.abspath(os.path.dirname(args.targetpath)) in rd.expand(binpaths).split(':'):
301 install = {args.newfile: (args.targetpath, perms)}
306 …he following recipes:\n %s\nPlease select recipe with -r/--recipe' % (targetpath, '\n '.join(alt…
308 …he following recipes:\n %s\nPlease select recipe with -r/--recipe' % (targetpath, '\n '.join(pos…
408 def target_path(targetpath): argument
409 if not os.path.isabs(targetpath):
410 …raise argparse.ArgumentTypeError('{0!r} must be an absolute path, not relative'.format(targetpath))
411 return targetpath