Author: jkupec Date: Mon Jul 28 14:17:32 2008 New Revision: 10673 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10673&view=rev Log: - refresh only repositories with autorefresh enabled (bnc #410791) Modified: trunk/zypper/src/zypp-refresh.cc Modified: trunk/zypper/src/zypp-refresh.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypp-refresh.cc?rev=10673&r1=10672&r2=10673&view=diff ============================================================================== --- trunk/zypper/src/zypp-refresh.cc (original) +++ trunk/zypper/src/zypp-refresh.cc Mon Jul 28 14:17:32 2008 @@ -122,7 +122,8 @@ KeyRingCallbacks keyring_callbacks; DigestCallbacks digest_callbacks; - list<RepoInfo> repos = manager.knownRepositories(); + list<RepoInfo> repos; + repos.insert(repos.end(), manager.repoBegin(), manager.repoEnd()); MIL << "Found " << repos.size() << " repos." << endl; unsigned repocount = 0, errcount = 0; @@ -135,21 +136,22 @@ { MIL << "Skipping CD/DVD repository: " "alias:[" << it->alias() << "] " - "url:[" << url << "] "; + "url:[" << url << "] " << endl; continue; } - if (!it->enabled()) + // refresh only enabled repos with enabled autorefresh (bnc #410791) + if (!(it->enabled() && it->autorefresh())) { - MIL << "Skipping disabled repository: " + MIL << "Skipping disabled/no-autorefresh repository: " "alias:[" << it->alias() << "] " - "url:[" << url << "] "; + "url:[" << url << "] " << endl; continue; } MIL << "Going to refresh repository: " "alias:[" << it->alias() << "] " - "url:[" << url << "] "; + "url:[" << url << "] " << endl; try { -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org