Merge branch 'master' into local_services
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 24 Sep 2010 11:20:51 +0000 (13:20 +0200)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 24 Sep 2010 11:20:51 +0000 (13:20 +0200)
Conflicts:
zypp/parser/RepoFileReader.cc

1  2 
zypp/parser/RepoFileReader.cc

@@@ -73,9 -76,23 +75,22 @@@ namespace zyp
            info.setKeepPackages( str::strToTrue( it->second ) );
          else if ( it->first == "service" )
            info.setService( it->second );
-           else
+           else if ( it->first == "proxy" )
+           {
+           if (it->second != "_none_" )
+             { 
+               str::regex ex("^(.*):([0-9]+)$");
+               str::smatch what;
+               if(str::regex_match(it->second, what, ex)){
+                url.setQueryParam("proxy", what[1]);
+                url.setQueryParam("proxyport", what[2]);
+               }
+             }
+           } else
              ERR << "Unknown attribute in [" << *its << "]: " << it->second << " ignored" << endl;
          }
 -
+         if (url.isValid())
+             info.addBaseUrl(url);
          info.setFilepath(is.path());
          MIL << info << endl;
          // add it to the list.