get location, patch, and delta rpms from patch-package-atom, if set
authorKlaus Kaempf <kkaempf@suse.de>
Fri, 3 Mar 2006 11:31:50 +0000 (11:31 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Fri, 3 Mar 2006 11:31:50 +0000 (11:31 +0000)
zypp/source/yum/YUMSourceImpl.cc

index 04f07779c905d23dbc31cd4d8929c0fccc30b516..d1192814f928a67e331aa68df5bbcf3c7c31c752 100644 (file)
@@ -537,8 +537,18 @@ namespace zypp
        // Collect augmented package data
        NVRAD packagedata( nvra, package->deps() );
 
+       if (!parsed.location.empty) {
+           impl->_location = parsed.location;
+           impl->_mediaid = str::strtonum<unsigned>( parsed.media );
+       }
+//     if (!parsed->plainRpms.empty()) impl->_plain_rpms = parsed->plainRpms;
+       if (!parsed->patchRpms.empty()) impl->_patch_rpms = parsed->patchRpms;
+       if (!parsed->deltaRpms.empty()) impl->_delta_rpms = parsed->deltaRpms;
+
        //DBG << "NVRAD " << (NVRA)packagedata << endl;
 
+
+
 #warning add patchrpm, deltarpm, etc. to YUMPackageImpl here
        Package::Ptr new_package = detail::makeResolvableFromImpl(
            packagedata, impl