projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86b1bb7
)
do not use private cache for root
author
Michael Andres
<ma@suse.de>
Wed, 25 Jul 2012 09:21:16 +0000
(11:21 +0200)
committer
Michael Andres
<ma@suse.de>
Wed, 1 Aug 2012 13:27:02 +0000
(15:27 +0200)
zypp/repo/RepoProvideFile.cc
patch
|
blob
|
history
diff --git
a/zypp/repo/RepoProvideFile.cc
b/zypp/repo/RepoProvideFile.cc
index
b934060
..
5ac2815
100644
(file)
--- a/
zypp/repo/RepoProvideFile.cc
+++ b/
zypp/repo/RepoProvideFile.cc
@@
-282,7
+282,7
@@
namespace zypp
assert_dir( destinationDir );
pi();
}
- if ( ! pi.userMayW() )
+ if (
geteuid() != 0 &&
! pi.userMayW() )
{
WAR << "Destination dir '" << destinationDir << "' is not user writable, using tmp space." << endl;
destinationDir = getZYpp()->tmpPath() / destinationDir;