[zypp-commit] r6922 - /trunk/libzypp/zypp/target/store/XMLFilesBackend.cc
![](https://seccdn.libravatar.org/avatar/d5900b51dba6d927d3feaf3b73360d4f.jpg?s=120&d=mm&r=g)
Author: dmacvicar Date: Tue Aug 28 12:44:04 2007 New Revision: 6922 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6922&view=rev Log: - Don't init the sources directories anymore Modified: trunk/libzypp/zypp/target/store/XMLFilesBackend.cc Modified: trunk/libzypp/zypp/target/store/XMLFilesBackend.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/target/store/XMLFilesBackend.cc?rev=6922&r1=6921&r2=6922&view=diff ============================================================================== --- trunk/libzypp/zypp/target/store/XMLFilesBackend.cc (original) +++ trunk/libzypp/zypp/target/store/XMLFilesBackend.cc Tue Aug 28 12:44:04 2007 @@ -274,16 +274,6 @@ bool nmthere = exists(dirForNamedFlags()); ok = ok && nmthere; - Pathname sourcesdir = d->root + ZYPP_DB_DIR + "/sources"; - bool srcthere = PathInfo(sourcesdir).isExist(); - ok = ok && srcthere; - - if (srcthere && fixperms) - { - MIL << "Making " << sourcesdir << " not readable by others (0700)" << std::endl; - filesystem::chmod( sourcesdir, 0700); - } - return ok; } @@ -328,13 +318,6 @@ ZYPP_THROW(Exception("Cannot create directory " + namedflags.asString())); else MIL << "Created " << namedflags.asString() << std::endl; - - // create dir for source list - Pathname source_p = d->root + Pathname(ZYPP_DB_DIR) + Pathname("/sources/"); - if (0 != assert_dir(source_p, 0700)) - ZYPP_THROW(Exception("Cannot create directory " + source_p.asString())); - else - MIL << "Created " << source_p.asString() << std::endl; } void XMLFilesBackend::setRandomFileNameEnabled( bool enabled ) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
dmacvicar@svn.opensuse.org