瀏覽代碼

Fix installation of packages without architecture field

Refactoring done in commit 58e7276b69be105735eccb3c18c2b28d3a2ec2e5
introduced a regression: a package without an architecture field
can no longer be installed without --force-architecture.
Raphaël Hertzog 15 年之前
父節點
當前提交
13637ddfaf
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/processarc.c

+ 2 - 1
src/processarc.c

@@ -282,7 +282,8 @@ void process_archive(const char *filename) {
     return;
     return;
   }
   }
 
 
-  if (strcmp(pkg->available.arch, "all") &&
+  if (strcmp(pkg->available.arch, "") &&
+      strcmp(pkg->available.arch, "all") &&
       strcmp(pkg->available.arch, native_arch))
       strcmp(pkg->available.arch, native_arch))
     forcibleerr(fc_architecture,
     forcibleerr(fc_architecture,
                 _("package architecture (%s) does not match system (%s)"),
                 _("package architecture (%s) does not match system (%s)"),