summaryrefslogtreecommitdiffstats
path: root/libopkg/pkg_hash.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-20 22:49:21 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-20 22:49:21 (EST)
commitcdeb4ec7a68b9a9f240d19b525849c77118c0ff0 (patch)
treede473039908c2da11b2d632818464861451be556 /libopkg/pkg_hash.c
parentec5a26e8047307658a0b78ffaa65f9d2daedd7b0 (diff)
Set the arch_priority when parsing the Architecture.
git-svn-id: http://opkg.googlecode.com/svn/trunk@507 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/pkg_hash.c')
-rw-r--r--libopkg/pkg_hash.c4
1 files changed, 2 insertions, 2 deletions
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;