-------------------------------------------------------------------
+Wed Sep 10 18:23:52 CEST 2008 - ma@suse.de
+
+- Follow gpgcheck tag in .repo file and do no check if disabled.
+- revision 11010
+- version 5.9.0 (8)
+
+-------------------------------------------------------------------
Wed Sep 10 17:54:20 CEST 2008 - jkupec@suse.cz
- added dumpAsXMLOn(stream,string) to ServiceInfo to print services
sigchecker.addPublicKey(dest_dir + key);
}
-
- this->enqueue( OnMediaLocation( _info.path() + "/content", 1 ), sigchecker );
+ if ( ! _info.gpgCheck() )
+ {
+ WAR << "Signature checking disabled in config of repository " << _info.alias() << endl;
+ }
+ this->enqueue( OnMediaLocation( _info.path() + "/content", 1 ),
+ _info.gpgCheck() ? FileChecker(sigchecker) : FileChecker(NullFileChecker()) );
this->start( dest_dir, media );
this->reset();
bool Downloader::patches_Callback( const OnMediaLocation &loc,
const string &id )
{
- OnMediaLocation loc_with_path(loc_with_path_prefix(loc, _info.path()));
+ OnMediaLocation loc_with_path(loc_with_path_prefix(loc, _info.path()));
MIL << id << " : " << loc_with_path << endl;
this->enqueueDigested(loc_with_path);
return true;
bool Downloader::repomd_Callback( const OnMediaLocation &loc,
const ResourceType &dtype )
{
- OnMediaLocation loc_with_path(loc_with_path_prefix(loc, _info.path()));
+ OnMediaLocation loc_with_path(loc_with_path_prefix(loc, _info.path()));
MIL << dtype << " : " << loc_with_path << endl;
//! \todo do this through a ZConfig call so that it is always in sync with parser
Pathname sigpath = _info.path() + "/repodata/repomd.xml.asc";
_media_ptr = (&media);
-
+
ProgressData progress;
progress.sendTo(progressrcv);
progress.toMin();
//downloadMediaInfo( dest_dir, _media );
-
+
_dest_dir = dest_dir;
-
+
SignatureFileChecker sigchecker(_info.name());
if ( _media_ptr->doesFileExist(sigpath) )
this->reset();
sigchecker = SignatureFileChecker(dest_dir + sigpath, _info.name());
}
-
+
if ( _media_ptr->doesFileExist(keypath) )
{
sigchecker.addPublicKey(dest_dir + keypath);
}
-
+
this->start( dest_dir, *_media_ptr );
if ( ! progress.tick() )
ZYPP_THROW(AbortRequestException());
- this->enqueue( OnMediaLocation(repomdpath,1), sigchecker );
+ if ( ! _info.gpgCheck() )
+ {
+ WAR << "Signature checking disabled in config of repository " << _info.alias() << endl;
+ }
+ this->enqueue( OnMediaLocation(repomdpath,1),
+ _info.gpgCheck() ? FileChecker(sigchecker) : FileChecker(NullFileChecker()) );
this->start( dest_dir, *_media_ptr);
if ( ! progress.tick() )