bf::path apps_rw(std::get<2>(l) / "apps_rw");
bf::path src = bf::path(kSkelAppDir) / pkgid;
bf::path dst = apps_rw / pkgid;
- if (!ci::CopyDir(src, dst, FS_COPY_XATTR))
+ if (!ci::CopyDir(src, dst))
continue;
if (!SetPackageDirectoryOwnerAndPermissions(dst, std::get<0>(l),
std::get<1>(l)))
#include <linux/limits.h>
#include <unzip.h>
#include <zlib.h>
-#include <attr/libattr.h>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
LOG(ERROR) << "Unable to create destination directory" << dst;
return false;
}
- if (flags & FS_COPY_XATTR) {
- if (attr_copy_file(src.c_str(), dst.c_str(), NULL, NULL)) {
- LOG(ERROR) << "attr_copy_file failed";
- return false;
- }
- }
} else {
if (!(flags & FS_MERGE_DIRECTORIES)) {
LOG(ERROR) << "Destination directory " << dst.string()
continue;
bf::copy_file(current, target);
}
- if (flags & FS_COPY_XATTR) {
- if (attr_copy_file(src.c_str(), dst.c_str(), NULL, NULL)) {
- LOG(ERROR) << "attr_copy_file failed";
- return false;
- }
- }
} catch (const bf::filesystem_error& error) {
LOG(ERROR) << "Failed to copy directory: " << error.what();
return false;
enum FSFlag {
FS_NONE = 0,
- FS_MERGE_DIRECTORIES = (1 << 0),
- FS_COPY_XATTR = (1 << 1)
+ FS_MERGE_DIRECTORIES = (1 << 0)
};
bool CreateDir(const boost::filesystem::path& path);