Skip to content
Snippets Groups Projects
Commit 5c76532d authored by Léa Raya DÉCORNOD's avatar Léa Raya DÉCORNOD
Browse files

patch python3-debian #1031674

parent cc49e212
Branches
No related merge requests found
Pipeline #101348 failed with stage
in 18 seconds
......@@ -8,3 +8,8 @@ RUN \
rm -rf /var/lib/apt/lists/*
COPY debrepo-upload /usr/bin/debrepo-upload
# patch python3-debian to allow control without ./control #1031674
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031674
COPY python3-debian.patch /usr/local/src/python3-debian.patch
RUN patch --dry-run --verbose /usr/lib/python3/dist-packages/debian/debfile.py /usr/local/src/python3-debian.patch
--- /usr/lib/python3/dist-packages/debian/debfile.py 2022-11-20 01:30:33.000000000 +0100
+++ /usr/lib/python3/dist-packages/debian/debfile.py 2023-02-28 18:23:50.260599367 +0100
@@ -257,6 +257,9 @@
fname = fname_real
try:
+ names = self.tgz().getnames()
+ if fname not in names and fname[2:] in names:
+ fname = fname[2:]
fobj = self.tgz().extractfile(fname)
except KeyError:
raise DebError("File not found inside package")
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment