Change-Id: I42a89ac1d5cc17d754c6580b9c650cad18473e01
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
#include <pkgmgr-info.h>
#include <sys/types.h>
#include <tzplatform_config.h>
+#include <unistd.h>
#include <string>
#include <vector>
}
}
+ // Don't check dependency if backend has executed as root
+ if (getuid () == 0)
+ return Status::OK;
+
bool installable = true;
manifest_x* manifest = context_->manifest_data.get();
for (const auto& dep : GListRange<dependency_x*>(manifest->dependencies)) {
#include "common/step/pkgmgr/step_check_removable.h"
+#include <sys/types.h>
+#include <unistd.h>
+
#include <string>
#include <vector>
return Status::OPERATION_NOT_ALLOWED;
}
+ // Don't check dependency if backend has executed as root
+ if (getuid() == 0)
+ return Status::OK;
+
std::vector<PkgQueryInterface::DependencyInfo> depends_on;
if (!pkg_query.PackagesDependsOn(&depends_on))
return Status::INVALID_VALUE;
#include <manifest_parser/utils/version_number.h>
#include <pkgmgrinfo_basic.h>
+#include <sys/types.h>
+#include <unistd.h>
#include <string>
#include <vector>
return Status::INVALID_VALUE;
}
+ // Don't check dependency if backend has executed as root
+ if (getuid() == 0)
+ return Status::OK;
+
std::vector<PkgQueryInterface::DependencyInfo> depends_on;
if (!pkg_query.PackagesDependsOn(&depends_on))
return Status::INVALID_VALUE;