Author: dmacvicar Date: Tue Aug 28 13:50:58 2007 New Revision: 6928 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6928&view=rev Log: ensure target is initialized Modified: trunk/zypper/src/zypper-sources.cc trunk/zypper/src/zypper.cc Modified: trunk/zypper/src/zypper-sources.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-sources.cc?rev=6928&r1=6927&r2=6928&view=diff ============================================================================== --- trunk/zypper/src/zypper-sources.cc (original) +++ trunk/zypper/src/zypper-sources.cc Tue Aug 28 13:50:58 2007 @@ -20,7 +20,7 @@ #include "zypper-callbacks.h" #include "zypper-utils.h" #include "zypper-sources.h" - +#include "zypper-misc.h" using namespace std; using namespace boost; @@ -196,6 +196,8 @@ static int do_init_repos() { + // load gpg keys + cond_init_target (); RepoManager manager; string specific_repo = copts.count("repo") ? copts["repo"].front() : ""; @@ -436,6 +438,8 @@ int refresh_repos(vector<string> & arguments) { + // need gpg keys when downloading (#304672) + cond_init_target(); RepoManager manager; list<RepoInfo> repos; try Modified: trunk/zypper/src/zypper.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper.cc?rev=6928&r1=6927&r2=6928&view=diff ============================================================================== --- trunk/zypper/src/zypper.cc (original) +++ trunk/zypper/src/zypper.cc Tue Aug 28 13:50:58 2007 @@ -1003,8 +1003,6 @@ return ZYPPER_EXIT_ERR_PRIVILEGES; } - // need gpg keys when downloading (#304672) - cond_init_target(); refresh_repos(arguments); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org