summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-06-12 11:53:57 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-25 22:52:26 -0400
commit4c2127c4837d7e2588399c06b56b45b2d4c2f9b0 (patch)
tree8275789c49d6bdaae996fa25d25efc088dce529d /boot
parentff2b99e19fc4245c171edd399f0e18301e0ba535 (diff)
downloadhaskell-4c2127c4837d7e2588399c06b56b45b2d4c2f9b0.tar.gz
Bump containers submodule to v0.6.2.1
Diffstat (limited to 'boot')
-rwxr-xr-xboot10
1 files changed, 9 insertions, 1 deletions
diff --git a/boot b/boot
index 1d7a01f3db..fc5dd29336 100755
--- a/boot
+++ b/boot
@@ -16,6 +16,11 @@ parser.add_argument('--validate', action='store_true', help='Run in validate mod
parser.add_argument('--hadrian', action='store_true', help='Do not assume the make base build system')
args = parser.parse_args()
+# Packages whose libraries aren't in the submodule root
+EXCEPTIONS = {
+ 'libraries/containers/': 'libraries/containers/containers/'
+}
+
def print_err(s):
print(dedent(s), file=sys.stderr)
@@ -78,7 +83,7 @@ def check_boot_packages():
# but in an lndir tree we avoid making .git directories,
# so it doesn't exist. We therefore require that every repo
# has a LICENSE file instead.
- license_path = os.path.join(dir_, 'LICENSE')
+ license_path = os.path.join(EXCEPTIONS.get(dir_+'/', dir_), 'LICENSE')
if not os.path.isfile(license_path):
die("""\
Error: %s doesn't exist
@@ -91,9 +96,12 @@ def boot_pkgs():
for package in glob.glob("libraries/*/"):
packages_file = os.path.join(package, 'ghc-packages')
+ print(package)
if os.path.isfile(packages_file):
for subpkg in open(packages_file, 'r'):
library_dirs.append(os.path.join(package, subpkg.strip()))
+ elif package in EXCEPTIONS:
+ library_dirs.append(EXCEPTIONS[package])
else:
library_dirs.append(package)