- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
31 lines
711 B
Python
Executable File
31 lines
711 B
Python
Executable File
#!/usr/bin/env python3
|
|
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
# Wrapper around 'git' that doesn't think we are root
|
|
|
|
import os
|
|
import shutil
|
|
import sys
|
|
|
|
os.environ['PSEUDO_UNLOAD'] = '1'
|
|
|
|
# calculate path to the real 'git'
|
|
path = os.environ['PATH']
|
|
# we need to remove our path but also any other copy of this script which
|
|
# may be present, e.g. eSDK.
|
|
replacements = [os.path.dirname(sys.argv[0])]
|
|
for p in path.split(":"):
|
|
if p.endswith("/scripts"):
|
|
replacements.append(p)
|
|
for r in replacements:
|
|
path = path.replace(r, '/ignoreme')
|
|
real_git = shutil.which('git', path=path)
|
|
|
|
if len(sys.argv) == 1:
|
|
os.execl(real_git, 'git')
|
|
|
|
os.execv(real_git, sys.argv)
|