From: Luis R. Rodriguez Date: Thu, 1 May 2014 15:11:03 +0000 (-0700) Subject: backports: add backports-update-manager binary requirements X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0fb30aaa303678b4a3ea888fa10bcb9fee9e0ac6;p=openwrt%2Fstaging%2Fblogic.git backports: add backports-update-manager binary requirements Signed-off-by: Luis R. Rodriguez --- diff --git a/devel/backports-update-manager b/devel/backports-update-manager index 8d2cd08bce3f..fc146c6198c9 100755 --- a/devel/backports-update-manager +++ b/devel/backports-update-manager @@ -8,6 +8,7 @@ source_dir = os.path.abspath(os.path.dirname(__file__)) sys.path.append(source_dir + '/../') from lib import bpar as ar from lib import bpgit as git +from lib import bpreqs as reqs KPATH="http://kernel.ubuntu.com/~kernel-ppa/mainline/" BACKPORTS_KSRC_DIR="ksrc-backports" @@ -562,6 +563,14 @@ def bk_tar_members(members): yield tarinfo def _main(): + req = reqs.Req() + req.require_hint('ar', 'binutils') + req.require('make') + req.require('gcc') + req.require('git') + if not req.reqs_match(): + sys.exit(1) + parser = argparse.ArgumentParser(description='Linux kernel backports update manager') parser.add_argument('--force', const=True, default=False, action="store_const", help='Force run without sanity or careful user checks')