From 6febdd5ea55c649a10189c07dced556efe512ffe Mon Sep 17 00:00:00 2001 From: "Deepti B. Kalakeri" Date: Fri, 5 Aug 2011 10:01:47 +0100 Subject: Changes to make it work for non linaro hwpack instead of making it work for linaro hwpack only --- linaro-hwpack-replace | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'linaro-hwpack-replace') diff --git a/linaro-hwpack-replace b/linaro-hwpack-replace index b208b93..cfc13a3 100755 --- a/linaro-hwpack-replace +++ b/linaro-hwpack-replace @@ -136,7 +136,7 @@ def modify_Packages_info(debpack_dirname, new_debpack_info, prefix_pkg_remove): # package information into Package, otherwise it would try to download the old # kernel package that was present in the hwpack than installing the new one. if not (should_remove(stanza["Package"]) or - stanza["Package"].startswith("hwpack-linaro")): + stanza["Package"].startswith("hwpack-")): output.append(stanza) output.append(DummyStanza(new_debpack_info)) @@ -152,8 +152,8 @@ def modify_Packages_info(debpack_dirname, new_debpack_info, prefix_pkg_remove): def main(): # Validate that all the required information is passed on the command line args = parser.parse_args() - if args.hwpack_name == None or args.deb_pack == None or - args.prefix_pkg_remove == None: + if (args.hwpack_name == None or args.deb_pack == None or + args.prefix_pkg_remove == None): parser.print_help() parser.error("You must specify both hwpack name "\ "and the debian package information\n") @@ -168,7 +168,6 @@ def main(): status = 0 try: - # Get the new hardware pack name hwpack_name = get_hwpack_name(old_hwpack) if hwpack_name == None: -- cgit v1.2.3