aboutsummaryrefslogtreecommitdiff
path: root/linaro-hwpack-replace
diff options
context:
space:
mode:
authorDeepti B. Kalakeri <deepti.kalakeri@linaro.org>2011-08-05 10:01:47 +0100
committerDeepti B. Kalakeri <deepti.kalakeri@linaro.org>2011-08-05 10:01:47 +0100
commit6febdd5ea55c649a10189c07dced556efe512ffe (patch)
treee33b77314d9c4e267a0f1d09fabd49471a96a1bd /linaro-hwpack-replace
parente951298e354615f8dd952f77aac3ab04414c4cdb (diff)
Changes to make it work for non linaro hwpack instead of making it work for linaro hwpack only
Diffstat (limited to 'linaro-hwpack-replace')
-rwxr-xr-xlinaro-hwpack-replace7
1 files changed, 3 insertions, 4 deletions
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: