Kaydet (Commit) e497cb8a authored tarafından sulincix's avatar sulincix

fix emerge build rfp

üst 8794d051
......@@ -756,7 +756,7 @@ class Builder:
# For binary types, WorkDir is usually "."
archive = self.spec.source.archive[0]
if archive.type == "binary":
if archive.type == "binary" or not os.path.isdir(src_dir):
return self.pkg_work_dir()
else:
return src_dir
......@@ -786,7 +786,7 @@ class Builder:
command += "fakeroot -u "
else:
command += "unshare -r "
if os.path.exists(src_dir):
if os.path.isdir(src_dir):
os.chdir(src_dir)
else:
raise Error(
......
......@@ -225,6 +225,9 @@ def check_file_hash(filename, hash):
"""Check the file's integrity with a given hash."""
if os.path.isdir(filename+"/.git"):
return True
if hash == "SKIP":
ctx.ui.warning(_("File hash control skip detected."))
return True
return sha1_file(filename) == hash
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment