Skip to content
Snippets Groups Projects
Commit 4da133d9 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Make package_dir absolute

parent cbb9a787
Branches
No related tags found
No related merge requests found
Pipeline #579 passed
...@@ -101,6 +101,7 @@ def build_package(repo_dir, package_dir, name, ...@@ -101,6 +101,7 @@ def build_package(repo_dir, package_dir, name,
for entry in _get_log_entries(): for entry in _get_log_entries():
run_checked(command + [entry]) run_checked(command + [entry])
print("building")
command = ["apt-get", "build-dep", "-y", name] command = ["apt-get", "build-dep", "-y", name]
run_checked(command) run_checked(command)
...@@ -112,6 +113,7 @@ def build_package(repo_dir, package_dir, name, ...@@ -112,6 +113,7 @@ def build_package(repo_dir, package_dir, name,
for filename in os.listdir(tempdir) for filename in os.listdir(tempdir)
if filename.endswith(".deb") if filename.endswith(".deb")
] ]
print("deb packages:", deb_packages)
for filename in os.listdir(tempdir): for filename in os.listdir(tempdir):
if not filename.endswith(".deb"): if not filename.endswith(".deb"):
continue continue
...@@ -130,7 +132,7 @@ def main(): ...@@ -130,7 +132,7 @@ def main():
if mail: if mail:
os.environ["DEBEMAIL"] = mail os.environ["DEBEMAIL"] = mail
package_dir = "packages" package_dir = os.path.join(repo_dir, "packages")
os.makedirs(package_dir, exist_ok=True) os.makedirs(package_dir, exist_ok=True)
for package in config["packages"]: for package in config["packages"]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment