Parse nonexisting architecture to noarch so patches dont get filtered by the pool...
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 21 Mar 2006 15:39:07 +0000 (15:39 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 21 Mar 2006 15:39:07 +0000 (15:39 +0000)
zypp/source/yum/YUMSourceImpl.cc

index fc3d24a332f60a62bdec60bccc2deaac376c8704..3942671110327dfd9d85170ee6b028554954c9a7 100644 (file)
@@ -717,10 +717,15 @@ namespace zypp
     {
       ResImplTraits<YUMPatchImpl>::Ptr impl(new YUMPatchImpl(source_r, parsed, *this));
 
+      Arch arch;
+      if (!parsed.arch.empty())
+      {
+        arch = Arch(parsed.arch);
+      }
       // Collect basic Resolvable data
       NVRAD dataCollect( parsed.name,
                      Edition( parsed.ver, parsed.rel, parsed.epoch ),
-                     Arch( parsed.arch ),
+                     arch,
                      createDependencies( parsed,
                                          ResTraits<Patch>::kind)
                    );