do not use private cache for root
authorMichael Andres <ma@suse.de>
Wed, 25 Jul 2012 09:21:16 +0000 (11:21 +0200)
committerMichael Andres <ma@suse.de>
Wed, 1 Aug 2012 13:27:02 +0000 (15:27 +0200)
zypp/repo/RepoProvideFile.cc

index b934060..5ac2815 100644 (file)
@@ -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;