-------------------------------------------------------------------
+Thu Jan 17 12:03:10 CET 2008 - kkaempf@suse.de
+
+- support 'patterns.pat' and 'patterns.pat.gz' to read all
+ patterns in one go.
+- rev 8309
+
+-------------------------------------------------------------------
Tue Jan 15 14:56:21 CET 2008 - lslezak@suse.cz
- added RpmDb::removePubkey(), call it from
for ( RepoIndex::FileChecksumMap::const_iterator it = _repoIndex->metaFileChecksums.begin();
it != _repoIndex->metaFileChecksums.end(); ++it )
{
- if ( isPatternFile( it->first ) )
+ Pathname inputfile;
+ inputfile = "";
+
+ if ( it->first == "patterns.pat"
+ || it->first == "patterns.pat.gz" )
+ {
+ // read all patterns in one go
+ inputfile = getOptionalFile( _descrdir / it->first, false /*filename already contains .gz */ );
+ }
+ else if ( isPatternFile( it->first ) )
{
// *** see also zypp/repo/susetags/Downloader.cc ***
// keep .pat file if it doesn't contain an recognizable arch
}
}
+ inputfile = getOptionalFile( _descrdir / it->first, false /*filename already contains .gz */ );
- Pathname inputfile( getOptionalFile( _descrdir / it->first, false /*filename already contains .gz */ ) );
- if ( ! inputfile.empty() )
- {
- PatternFileReader reader;
- reader.setConsumer( bind( &Impl::consumePat, this, _1 ) );
- CombinedProgressData progress( _ticks, PathInfo(inputfile).size() );
- reader.parse( inputfile, progress );
- }
}
+ if ( ! inputfile.empty() )
+ {
+ PatternFileReader reader;
+ reader.setConsumer( bind( &Impl::consumePat, this, _1 ) );
+ CombinedProgressData progress( _ticks, PathInfo(inputfile).size() );
+ reader.parse( inputfile, progress );
+ }
}
// Done
}
}
}
+ else if ( it->first == "patterns.pat"
+ || it->first == "patterns.pat.gz" )
+ {
+ // take all patterns in one go
+ }
else if ( str::endsWith( it->first, ".pat" )
|| str::endsWith( it->first, ".pat.gz" ) )
{