libopkg: store checksums in binary form, use integer index for architecture
[oweals/opkg-lede.git] / libopkg / opkg.c
index 9e278cd7af621a1b47eb90fc73a96f146c2aa8e4..d8c17cdf87bd099adaa1e10c5cd528d14059de12 100644 (file)
@@ -749,7 +749,7 @@ pkg_t *opkg_find_package(const char *name, const char *ver, const char *arch,
 
                /* check architecture */
                if (arch) {
-                       if (sstrcmp(pkg_get_string(pkg, PKG_ARCHITECTURE), arch))
+                       if (sstrcmp(pkg_get_architecture(pkg), arch))
                                continue;
                }