X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=zypp%2FPathInfo.h;h=74baf030e74a07df7085d07eb6d7ced80c0cf37c;hb=HEAD;hp=3242f5a776961cfbb7922e4c7b9264b793f741ce;hpb=d03c8619a33db733cf8090faf37aea4887116c42;p=platform%2Fupstream%2Flibzypp.git diff --git a/zypp/PathInfo.h b/zypp/PathInfo.h index 3242f5a..cb05df5 100644 --- a/zypp/PathInfo.h +++ b/zypp/PathInfo.h @@ -27,9 +27,9 @@ extern "C" #include #include -#include "zypp/Pathname.h" -#include "zypp/CheckSum.h" -#include "zypp/ByteCount.h" +#include +#include +#include /////////////////////////////////////////////////////////////////// namespace zypp @@ -581,6 +581,10 @@ namespace zypp * @return 0 on success, errno on failure **/ int assert_file( const Pathname & path, unsigned mode = 0644 ); + /** + * Like \ref assert_file but enforce \a mode even if the file already exists. + */ + int assert_file_mode( const Pathname & path, unsigned mode = 0644 ); /** * Change file's modification and access times. @@ -734,7 +738,7 @@ namespace zypp /** * check files checksum * - * @return true if the checksum matchs + * @return true if the checksum matches (an empty Checksum always matches!) **/ bool is_checksum( const Pathname & file, const CheckSum &checksum ); @@ -771,7 +775,7 @@ namespace zypp * * @return ZT_GZ, ZT_BZ2 if file is compressed, otherwise ZT_NONE. **/ - enum ZIP_TYPE { ZT_NONE, ZT_GZ, ZT_BZ2 }; + enum ZIP_TYPE { ZT_NONE, ZT_GZ, ZT_BZ2, ZT_ZCHNK }; ZIP_TYPE zipType( const Pathname & file );