Lines Matching defs:path
126 static bool IsPackagePath(const std::string &path)
128 if (path.find("--force_update_action=") != std::string::npos ||
129 path.find("--night_update") != std::string::npos) {
137 for (auto path : packageName) {
140 return 4; // 4 : path is too long
143 if (IsPackagePath(path)) {
145 sizeof(msg.update) - 1 - updateOffset, "--update_package=%s\n", path.c_str());
148 sizeof(msg.update) - 1 - updateOffset, "%s\n", path.c_str());
169 LOG(ERROR) << "get sdcard pkg path fail";
186 for (auto path : packageName) {
187 if (IsPackagePath(path)) {
188 if (access(path.c_str(), R_OK) < 0) {
189 LOG(ERROR) << "updaterkits: " << path << " is not readable";