projects
/
platform
/
upstream
/
zypper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ed1bcf
)
Don't perform automatic service refresh if non-root user.
author
Michael Andres
<ma@suse.de>
Mon, 17 Jan 2011 10:38:27 +0000
(11:38 +0100)
committer
Michael Andres
<ma@suse.de>
Mon, 17 Jan 2011 10:38:27 +0000
(11:38 +0100)
src/repos.cc
patch
|
blob
|
history
diff --git
a/src/repos.cc
b/src/repos.cc
index
e5712e0
..
9bfcffe
100644
(file)
--- a/
src/repos.cc
+++ b/
src/repos.cc
@@
-546,7
+546,7
@@
void do_init_repos(Zypper & zypper, const Container & container)
// can ignore repos targetted for other systems
init_target(zypper);
- if (!zypper.globalOpts().no_refresh)
+ if (
geteuid() == 0 &&
!zypper.globalOpts().no_refresh)
{
MIL << "Refreshing autorefresh services." << endl;