Commit d04deddb authored by Robin Sonnabend's avatar Robin Sonnabend

More debug output

parent 486475b4
Pipeline #577 failed with stage
in 6 minutes and 48 seconds
...@@ -63,19 +63,21 @@ def build_package(repo_dir, package_dir, name, ...@@ -63,19 +63,21 @@ def build_package(repo_dir, package_dir, name,
"Extracted package {} is not expected package {}".format( "Extracted package {} is not expected package {}".format(
pkg_name, name)) pkg_name, name))
print("Extracted name", pkg_dir, pkg_name)
workdir = os.path.join(tempdir, pkg_dir) workdir = os.path.join(tempdir, pkg_dir)
os.chdir(workdir)
print(os.listdir()) print("Content of tempdir:", os.listdir(workdir))
print("Content of workdir:", os.listdir(workdir))
if additional_content is not None: if additional_content is not None:
print("applying additional content") print("applying additional content")
os.chdir(workdir) os.chdir(workdir)
print(os.listdir())
for content in additional_content: for content in additional_content:
print("applying {}".format(content)) target_dir = content["target_dir"]
os.chdir(content["target_dir"]) print("applying", content, "in", target_dir)
print(os.listdir()) os.listdir(target_dir)
os.chdir(target_dir)
if "patch_dir" in content: if "patch_dir" in content:
abs_patch_dir = os.path.join( abs_patch_dir = os.path.join(
repo_dir, content["patch_dir"]) repo_dir, content["patch_dir"])
...@@ -83,10 +85,11 @@ def build_package(repo_dir, package_dir, name, ...@@ -83,10 +85,11 @@ def build_package(repo_dir, package_dir, name,
elif "git_url" in content: elif "git_url" in content:
run_checked(["git", "clone", content["git_url"]]) run_checked(["git", "clone", content["git_url"]])
else: else:
print( raise ValueError(
"Unknown kind of additional content: {}".format( "Unknown kind of additional content: {}".format(
content)) content))
os.chdir(workdir)
command = ["debchange", "--preserve"] command = ["debchange", "--preserve"]
if version is None: if version is None:
......
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