Skip to content

Commit 6b65cd7

Browse files
committed
Add tests for directory listed packages
Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent 616b674 commit 6b65cd7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+47512
-2
lines changed

src/fetchcode/package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def get_gnu_data_from_purl(purl):
342342
source_archive_url = f"https://ftp.gnu.org/pub/gnu/{purl.name}/"
343343
regex = r"^({}-)([\w.-]*)(.tar.gz)$".format(purl.name)
344344

345-
yield from extract_packages_from_listing(purl, source_archive_url, regex)
345+
yield from extract_packages_from_listing(purl, source_archive_url, regex, [])
346346

347347

348348
@dataclasses.dataclass
@@ -972,7 +972,7 @@ class DropbearDirectoryListedSource(DirectoryListedSource):
972972
"pkg:generic/syslinux.*",
973973
"pkg:generic/toybox.*",
974974
"pkg:generic/uclibc",
975-
"pkg:generic/uclibc@.*"
975+
"pkg:generic/uclibc@.*",
976976
"pkg:generic/uclibc-ng.*",
977977
"pkg:generic/util-linux.*",
978978
"pkg:generic/wpa_supplicant.*",

0 commit comments

Comments
 (0)