From cdeb4ec7a68b9a9f240d19b525849c77118c0ff0 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Sun, 20 Dec 2009 22:49:21 -0500 Subject: Set the arch_priority when parsing the Architecture. git-svn-id: http://opkg.googlecode.com/svn/trunk@507 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/pkg_hash.c') diff --git a/libopkg/pkg_hash.c b/libopkg/pkg_hash.c index 2fc539e..5850082 100644 --- a/libopkg/pkg_hash.c +++ b/libopkg/pkg_hash.c @@ -105,10 +105,10 @@ pkg_hash_add_from_file(const char *file_name, continue; } - if (!pkg->architecture) { + if (!pkg->architecture || !pkg->arch_priority) { char *version_str = pkg_version_str_alloc(pkg); opkg_msg(ERROR, "Package %s version %s has no " - "architecture specified, ignoring.\n", + "valid architecture, ignoring.\n", pkg->name, version_str); free(version_str); continue; -- cgit v0.9.1