Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cloning sapling repositories when sapling is used for devel pkg #838

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions alibuild_helpers/doctor.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ def doDoctor(args, parser):
# Decide if we can use homebrew. If not, we replace it with "true" so
# that we do not get spurious messages on linux
homebrew_replacement = ""
err, output = getstatusoutput("type c++")
with DockerRunner(args.dockerImage, args.docker_extra_args) as getstatusoutput_docker:
err, output = getstatusoutput_docker("type c++")
if err:
warning("Unable to find system compiler.\n"
"%s\n"
"Please follow prerequisites:\n"
"* On Centos compatible systems: https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-centos7.html\n"
"* On RHEL9 compatible systems (e.g. Alma9): https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-alma9.html\n"
"* On Fedora compatible systems: https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-fedora.html\n"
"* On Ubuntu compatible systems: https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-ubuntu.html\n"
"* On macOS: https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-macos.html\n",
Expand All @@ -95,7 +96,7 @@ def doDoctor(args, parser):
error("Unable to find git.\n"
"%s\n"
"Please follow prerequisites:\n"
"* On Centos compatible systems: https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-centos7.html\n"
"* On RHEL9 compatible systems (e.g. Alma9): https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-alma9.html\n"
"* On Fedora compatible systems: https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-fedora.html\n"
"* On Ubuntu compatible systems: https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-ubuntu.html\n"
"* On macOS: https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-macos.html\n",
Expand Down
3 changes: 3 additions & 0 deletions alibuild_helpers/sl.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def diffCmd(self, directory):

def checkUntracked(self, line):
return line.startswith("? ")
def cloneCmd(self, source, referenceRepo, usePartialClone):
cmd = ["clone", source, referenceRepo]
return cmd


def sapling(args, directory=".", check=True, prompt=True):
Expand Down
Loading