mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
23 hours ago d8d156517b11829440b3a0be234fc9d7629ef383
src/archrepobuild/builder.py
@@ -251,11 +251,16 @@
                raise ValueError(f"Package not found in AUR: {package}")
            pkg_dir.parent.mkdir(parents=True, exist_ok=True)
            try:
            subprocess.run(
                ["git", "clone", pkg_info.git_url, str(pkg_dir)],
                check=True,
                capture_output=True,
                    text=True,
            )
            except subprocess.CalledProcessError as e:
                logger.error(f"Failed to clone {package} from {pkg_info.git_url}: {e.stderr}")
                raise ValueError(f"Failed to clone package from AUR: {e.stderr}")
            return True
    def _is_vcs_package(self, package_dir: Path) -> bool: