diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:20:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:20:37 +0000 |
commit | 2d0ec380bae2ec8d51b6193fee6577188c6bb2ec (patch) | |
tree | 00f9136b2844d7e9ddc861b845ccc309aaa6091a /debian/get-stage0.py | |
parent | Merging upstream version 1.70.0+dfsg1. (diff) | |
download | rustc-2d0ec380bae2ec8d51b6193fee6577188c6bb2ec.tar.xz rustc-2d0ec380bae2ec8d51b6193fee6577188c6bb2ec.zip |
Adding debian version 1.70.0+dfsg1-7.debian/1.70.0+dfsg1-7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/get-stage0.py')
-rwxr-xr-x | debian/get-stage0.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/debian/get-stage0.py b/debian/get-stage0.py index 1f55c53a2..49f8066ca 100755 --- a/debian/get-stage0.py +++ b/debian/get-stage0.py @@ -3,6 +3,7 @@ # In that case, you probably just need to override the failing step in our # DownloadOnlyRustBuild class below. +import shutil import sys import bootstrap @@ -10,7 +11,7 @@ from bootstrap import RustBuild class DownloadOnlyRustBuild(RustBuild): triple = None - def build_bootstrap(self): + def build_bootstrap(self, color, verbose_count): pass def run(self, *args): pass @@ -25,7 +26,13 @@ def main(argv): triple = argv.pop(1) DownloadOnlyRustBuild.triple = triple bootstrap.RustBuild = DownloadOnlyRustBuild - bootstrap.bootstrap(False) + args = bootstrap.parse_args() + # bootstrap.py likes to delete our .cargo directory out from under us + shutil.move(".cargo", ".cargo-bak") + try: + bootstrap.bootstrap(args) + finally: + shutil.move(".cargo-bak", ".cargo") if __name__ == '__main__': main(sys.argv) |