#include "zypper-callbacks.h"
#include "zypper-utils.h"
#include "zypper-sources.h"
-
+#include "zypper-misc.h"
using namespace std;
using namespace boost;
static int do_init_repos()
{
+ // load gpg keys
+ cond_init_target ();
RepoManager manager;
string specific_repo = copts.count("repo") ? copts["repo"].front() : "";
int refresh_repos(vector<string> & arguments)
{
+ // need gpg keys when downloading (#304672)
+ cond_init_target();
RepoManager manager;
list<RepoInfo> repos;
try
return ZYPPER_EXIT_ERR_PRIVILEGES;
}
- // need gpg keys when downloading (#304672)
- cond_init_target();
refresh_repos(arguments);
}