Skip to content

Commit 2f07a67

Browse files
authored
Add a filter in install-debs.py (#15372)
1 parent 05d4d46 commit 2f07a67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eng/common/cross/build-rootfs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ elif [[ -n "$__CodeName" ]]; then
800800
PYTHON=${PYTHON_EXECUTABLE:-python3}
801801

802802
# shellcheck disable=SC2086,SC2046
803-
echo running "$PYTHON" "$__CrossDir/install-debs.py" --arch "$__UbuntuArch" --rootfsdir "$__RootfsDir" --artool "$AR" \
803+
echo running "$PYTHON" "$__CrossDir/install-debs.py" --arch "$__UbuntuArch" --mirror "$__UbuntuRepo" --rootfsdir "$__RootfsDir" --artool "$AR" \
804804
$(echo $suites | xargs -n 1 | xargs -I {} echo -n "--suite {} ") \
805805
$__UbuntuPackages
806806

eng/common/cross/install-debs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def extract_deb_file_using_dpkg(deb_file, tmp_dir, extract_dir, ar_tool):
270270
raise ValueError(f"Unsupported compression format: {file_extension}")
271271

272272
with tarfile.open(tar_file_path, mode) as tar:
273-
tar.extractall(path=extract_dir, filter=None)
273+
tar.extractall(path=extract_dir, filter='tar')
274274

275275
def finalize_setup(rootfsdir):
276276
lib_dir = os.path.join(rootfsdir, 'lib')

0 commit comments

Comments
 (0)