├── tests └── data │ ├── new_name │ ├── ext │ │ ├── test.txt │ │ ├── test_2.txt │ │ ├── test.txt_1 │ │ │ └── .dummy │ │ └── test_1.txt │ │ │ └── .dummy │ └── noext │ │ ├── TEST_1 │ │ ├── test │ │ ├── test_2 │ │ └── test_3 │ │ └── .dummy │ ├── extract │ ├── tree │ │ ├── a │ │ │ ├── a.txt │ │ │ └── a.tar.gz │ │ ├── b │ │ │ ├── a.txt │ │ │ └── b.tar.gz │ │ └── c │ │ │ ├── a.txt │ │ │ └── a.tar.gz │ ├── scm │ │ ├── dot-cvsignore │ │ ├── dot-svn.zip │ │ └── input.tar.gz │ ├── special │ │ └── t.tgz │ ├── TODO │ │ ├── ipm430.rar │ │ ├── shallow │ │ │ └── shal.tgz │ │ ├── file_4.26-1.diff.gz │ │ ├── cannot_open │ │ │ ├── corrupted.gz │ │ │ └── password.zip │ │ ├── jar_war_ear │ │ │ ├── balancer.war │ │ │ ├── jaxrpc-simple.ear │ │ │ ├── jaxrpc-simple.war │ │ │ └── jaxrpc-simpleShare.jar │ │ ├── unicode │ │ │ ├── ticket_3013.zip │ │ │ └── skinenigmang-logos-xpm-hi-20070214.tgz │ │ ├── permission_cbrtimer.tar.gz │ │ ├── file_with_tars_extracted.zip │ │ ├── links │ │ │ ├── prune_link_no_boms.tar.gz │ │ │ ├── prune_broken_simlink_2570.tar.gz │ │ │ └── skinenigmang-logos-xpm-hi-20070214.tgz │ │ ├── office_docs │ │ │ ├── ofbiz-overview.sdd │ │ │ └── OpenSourceForBusinessSeminarOutline.sxi │ │ ├── empty_dir │ │ │ └── yazd_src_Beta_3_0.tar.gz │ │ ├── macosx-dot-files-ticket_1176.tar.gz │ │ ├── xz_lzma │ │ │ ├── texlive-core-patches-20.tar.xz │ │ │ └── coreutils-8.5-patches-1.tar.lzma │ │ ├── org-jvnet-glassfish-comms-sipagent_1530.jar │ │ ├── rpm │ │ │ └── libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm │ │ └── msvc-files │ │ │ ├── stdafx.h │ │ │ └── resource.h │ ├── all_formats │ │ ├── c.zip │ │ └── doc.docx │ ├── generator │ │ └── c.zip │ ├── ignore │ │ ├── alpha.zip │ │ └── gamma │ │ │ └── gamma.zip │ ├── corrupted │ │ └── a.tar.gz │ ├── replace-originals │ │ ├── rake.1.gz.ABOUT │ │ ├── issue6550.gz.ABOUT │ │ ├── rake.1.gz │ │ └── issue6550.gz │ ├── office_docs │ │ ├── abc.docx │ │ ├── excel.xlsx │ │ └── ppt.pptx │ ├── small │ │ └── empty_small.zip │ ├── zipslip │ │ ├── zip-slip.zip │ │ ├── zip-slip-win.zip │ │ ├── zip-slip.tar.ABOUT │ │ ├── zip-slip.zip.ABOUT │ │ ├── zip-slip-win.tar.ABOUT │ │ └── zip-slip-win.zip.ABOUT │ ├── ar_tree │ │ └── winlib │ │ │ ├── zlib.lib │ │ │ ├── gsdll32.lib │ │ │ ├── htmlhelp.lib │ │ │ ├── pyexpat.lib │ │ │ └── php4embed.lib │ ├── basic_non_nested.tar.gz │ ├── relative_path │ │ └── basic.zip │ ├── nested │ │ └── nested_tars.tar.gz │ ├── readonly │ │ └── read_only.tar.gz │ ├── broken_link │ │ └── broken-link.tar.bz2 │ ├── space-zip │ │ └── with spaces in name.zip │ ├── space-tgz │ │ └── with spaces in name.tar.gz │ └── nested_not_compressed │ │ └── nested_with_not_compressed_gz_file.tgz │ ├── patch │ ├── not_patches │ │ ├── empty │ │ ├── not.a.diff-extract │ │ ├── not.a.patch-extract │ │ ├── icu │ │ │ └── series │ │ ├── jfsutils │ │ │ └── series │ │ ├── changelog │ │ │ └── CHANGELOG.tar.gz │ │ ├── opensource │ │ │ └── series │ │ ├── common_defs.mk │ │ └── common_flags.mk │ └── patches │ │ ├── problematic │ │ └── OpenSSO.patch.expected │ │ ├── misc │ │ ├── webkit │ │ │ └── opensource │ │ │ │ ├── patches │ │ │ │ ├── sync_xhr.patch.expected │ │ │ │ ├── enable_proxy_setup_log.patch │ │ │ │ ├── file_secure_mode.patch │ │ │ │ ├── useragent.patch │ │ │ │ ├── speedup.patch │ │ │ │ ├── webcore_keyevent.patch │ │ │ │ ├── webkit_xmlhttprequest_cross_domain.patch │ │ │ │ └── enable_proxy_setup_log.patch.expected │ │ │ │ └── prepatches │ │ │ │ ├── support_parallel_idl_gen.patch │ │ │ │ └── support_parallel_idl_gen.patch.expected │ │ ├── linux-st710x │ │ │ └── patches │ │ │ │ ├── i2c_nostop_for_bitbanging.patch │ │ │ │ ├── kernel_extable.c.patch │ │ │ │ ├── bugs.h.patch │ │ │ │ ├── soc.h.patch │ │ │ │ ├── devinet.c.patch │ │ │ │ ├── squashfs3.3_revert.patch │ │ │ │ ├── smsc_makefile.patch │ │ │ │ ├── localversion.patch │ │ │ │ ├── netconsole.c.patch │ │ │ │ ├── arch_sh_kernel_cpu_init.c.patch │ │ │ │ ├── kernel_extable.c.patch.expected │ │ │ │ ├── cfi_util.c.patch │ │ │ │ ├── delayed_i2c_read.patch │ │ │ │ ├── if_ppp.h.patch │ │ │ │ ├── mmu_context.h.patch │ │ │ │ ├── namespace.c.patch │ │ │ │ ├── pid.c.patch │ │ │ │ ├── sample.patch │ │ │ │ ├── time.c.patch │ │ │ │ ├── bugs.h.patch.expected │ │ │ │ ├── ksymhash_elflib.c.patch │ │ │ │ ├── phy.h.patch │ │ │ │ ├── sh_ksyms.c.patch │ │ │ │ ├── devinet.c.patch.expected │ │ │ │ ├── localversion.patch.expected │ │ │ │ ├── soc.h.patch.expected │ │ │ │ ├── smsc_makefile.patch.expected │ │ │ │ ├── init_Kconfig.patch │ │ │ │ ├── netconsole.c.patch.expected │ │ │ │ ├── drivers_net_Makefile.patch │ │ │ │ ├── arch_sh_kernel_cpu_init.c.patch.expected │ │ │ │ ├── squashfs3.3_revert.patch.expected │ │ │ │ ├── delayed_i2c_read.patch.expected │ │ │ │ ├── cfi_util.c.patch.expected │ │ │ │ ├── namespace.c.patch.expected │ │ │ │ ├── kernel_resource.patch │ │ │ │ ├── pid.c.patch.expected │ │ │ │ ├── if_ppp.h.patch.expected │ │ │ │ ├── time.c.patch.expected │ │ │ │ ├── cmdlinepart.c.patch │ │ │ │ ├── mmu_context.h.patch.expected │ │ │ │ ├── nand_flash_based_bbt.patch │ │ │ │ ├── sh_ksyms.c.patch.expected │ │ │ │ ├── ksymhash_elflib.c.patch.expected │ │ │ │ ├── sample.patch.expected │ │ │ │ ├── phy.h.patch.expected │ │ │ │ ├── i2c_rate_normal.patch │ │ │ │ ├── drivers_net_Makefile.patch.expected │ │ │ │ ├── kernel_resource.patch.expected │ │ │ │ ├── arch_sh_Makefile.patch │ │ │ │ ├── cmdlinepart.c.patch.expected │ │ │ │ ├── init_Kconfig.patch.expected │ │ │ │ ├── dma-api.c.patch │ │ │ │ ├── unionfs_remove_debug_printouts.patch │ │ │ │ ├── yaffs2-2008.07.15_for_2.6.23.17-yaffs_guts.c.patch │ │ │ │ ├── nand_flash_based_bbt.patch.expected │ │ │ │ ├── addrspace.h.patch │ │ │ │ ├── char_build.patch │ │ │ │ ├── pgtable.h.patch │ │ │ │ ├── i2c-stm.c.patch2 │ │ │ │ ├── i2c_rate_normal.patch.expected │ │ │ │ └── arch_sh_mm_init.c.patch │ │ ├── libasyncns │ │ │ ├── configure.patch │ │ │ └── configure.patch.expected │ │ ├── libiconv │ │ │ └── patches │ │ │ │ ├── make.patch │ │ │ │ └── make.patch.expected │ │ ├── libxml2 │ │ │ └── patches │ │ │ │ ├── iconv.patch │ │ │ │ └── iconv.patch.expected │ │ ├── vqec │ │ │ └── patch │ │ │ │ ├── BUILD.patch │ │ │ │ └── BUILD.patch.expected │ │ ├── busybox │ │ │ └── patches │ │ │ │ ├── fix-subarch.patch │ │ │ │ ├── fix-subarch.patch.expected │ │ │ │ ├── gtrick.patch │ │ │ │ └── gtrick.patch.expected │ │ ├── libjpeg-v6b │ │ │ └── patches │ │ │ │ ├── configure.patch │ │ │ │ ├── makefile.cfg.patch │ │ │ │ ├── makefile.cfg.patch.expected │ │ │ │ └── configure.patch.expected │ │ ├── libpng-1.2.8 │ │ │ ├── pngrutil.c.patch │ │ │ ├── pngconf.h.patch │ │ │ ├── pngrutil.c.patch.expected │ │ │ └── pngconf.h.patch.expected │ │ ├── e2fsprogs-1.37 │ │ │ ├── uuidlibs_blkidlibs_only_target_Makefile.in.patch │ │ │ └── uuidlibs_blkidlibs_only_target_Makefile.in.patch.expected │ │ ├── jfsutils │ │ │ └── patches │ │ │ │ ├── largefile.patch │ │ │ │ └── largefile.patch.expected │ │ ├── openssl-0.9.8 │ │ │ └── patches │ │ │ │ ├── Configure.patch │ │ │ │ └── Configure.patch.expected │ │ ├── libdaemon-0.13 │ │ │ └── patches │ │ │ │ ├── configure.patch │ │ │ │ └── configure.patch.expected │ │ ├── avahi-0.6.25 │ │ │ └── patches │ │ │ │ ├── configure.patch │ │ │ │ ├── main.c.patch │ │ │ │ └── configure.patch.expected │ │ ├── udhcp-0.9.8 │ │ │ └── patch │ │ │ │ ├── dhcpd.h.patch │ │ │ │ ├── options.h.patch │ │ │ │ └── packet.h.patch │ │ ├── sqlite │ │ │ └── patches │ │ │ │ └── permissions.patch │ │ └── curl │ │ │ └── patches │ │ │ └── ekioh_cookie_fix.patch │ │ ├── ElectricFence-2.1-vaarg.patch │ │ ├── xvidcap-1.1.6-docdir.patch │ │ ├── xvidcap-xorg.patch │ │ ├── xvidcap-1.1.6-docdir.patch.expected │ │ ├── ElectricFence-2.1-vaarg.patch.expected │ │ ├── xvidcap-xorg.patch.expected │ │ ├── ElectricFence-2.0.5-longjmp.patch │ │ ├── windows │ │ └── ether_patch_1.patch │ │ └── libmediainfo-0.7.43.diff │ ├── archive │ ├── gzip │ │ ├── random_binary.data │ │ ├── s.gz │ │ ├── twofiles.gz │ │ ├── mysql-arch.ARZ │ │ ├── backslash_path.gz │ │ ├── leading_data.gz │ │ ├── trailing_data.gz │ │ └── file_4.26-1.diff.gz │ ├── TODO │ │ ├── shar │ │ │ ├── tar.shar.README │ │ │ ├── tst.makeself.REDAME │ │ │ ├── tst.makeself │ │ │ ├── tar-1.11.8.shar.gz │ │ │ └── origin.README │ │ ├── text_content │ │ │ ├── high_ancest.zip │ │ │ ├── trailing_data.gz │ │ │ ├── absolute_path.tar.bz2 │ │ │ └── absolute_path.tar.gz │ │ ├── mixed_case_ticket_6897 │ │ │ └── case.tgz │ │ ├── weird_tars │ │ │ ├── bitarray-0.8.1.tar.gz │ │ │ ├── deferargs-0.4.tar.gz │ │ │ ├── empty-tar-no-dir.tar.gz │ │ │ ├── grapefruit-0.1a3.tar.gz │ │ │ └── ABOUT.txt │ │ ├── dmg │ │ │ ├── easy-subclipse-mylyn-2.0.0.dmg │ │ │ └── ABOUT │ │ ├── unicodeticket_2859 │ │ │ └── unicode_names.tgz │ │ └── rpmticket_6327 │ │ │ ├── jabber-roster-0.1.1-2.fc17.noarch.rpm │ │ │ ├── jack_capture-0.9.61-1.fc17.i686.rpm │ │ │ ├── gettext-runtime-32bit-0.17-61.40.x86_64.rpm │ │ │ └── ABOUT │ ├── not_archive │ │ ├── hashfile │ │ └── wildtest.txt │ ├── 7z │ │ ├── z.7z │ │ ├── t .7z │ │ ├── corrupted7z.7z │ │ ├── 7zip_password.7z │ │ ├── 7zip_relative.7z │ │ ├── 7zip_trailing.7z │ │ ├── 7zip_unicode.7z │ │ └── 7zip_invalidpath.7z │ ├── ar │ │ ├── liby.a │ │ ├── liby.tar.gz │ │ ├── ar_trailing.a │ │ ├── liby-corrupted.a │ │ ├── winlib │ │ │ ├── zlib.lib │ │ │ ├── freetype.lib │ │ │ ├── gsdll32.lib │ │ │ ├── htmlhelp.lib │ │ │ ├── libmysql.lib │ │ │ ├── pyexpat.lib │ │ │ └── php4embed.lib │ │ └── ar_invalidpath.ar │ ├── cbr │ │ ├── t.cbr │ │ └── t.cbr.foo │ ├── cbz │ │ ├── t.cbz │ │ └── t.cbz.foo │ ├── Z │ │ ├── tr2tex.Z │ │ └── tkWWW-0.11.tar.Z │ ├── cb7 │ │ ├── t .cb7 │ │ └── t.cb7.foo │ ├── dia │ │ ├── dia.dia │ │ ├── dia_broken.dia │ │ ├── dia_trailing.dia │ │ ├── broken │ │ │ ├── PublisherUML.dia │ │ │ ├── ServletProxyGenerator.dia │ │ │ └── schedulerClassDiagram.dia │ │ └── guess │ │ │ └── infoset-doc.dia │ ├── lz4 │ │ ├── some.lz4 │ │ └── sample.tar.lz4 │ ├── lzip │ │ ├── some.lz │ │ └── sample.tar.lz │ ├── wmz │ │ ├── Go.wmz │ │ └── image003.wmz │ ├── zip │ │ ├── test.zip │ │ ├── basic.zip │ │ ├── dup_names.zip │ │ ├── unicode.zip │ │ ├── unicode2.zip │ │ ├── jar │ │ │ └── simple.jar │ │ ├── timezone │ │ │ ├── c.zip │ │ │ └── projecttest.zip │ │ ├── zip_broken.zip │ │ ├── zip_unicode.zip │ │ ├── relative_nested.zip │ │ ├── weird_file_name.zip │ │ ├── zip_invalidpath.zip │ │ ├── moq.4.2.1507.118.nupkg │ │ ├── zip_password_nexb.zip │ │ ├── zip_trailing_data.zip │ │ ├── zip_trailing_data2.zip │ │ ├── backslash │ │ │ ├── AspectJTest.zip │ │ │ ├── backslash1.zip │ │ │ └── boo-0.3-src.zip │ │ ├── relative_parent_folders.zip │ │ ├── directory-with-no-trailing-slash.zip │ │ ├── exceptionhero.javascript.1.0.5.nupkg │ │ └── javascript-fastclass.1.1.729.121805.nupkg │ ├── cab │ │ ├── basic.cab │ │ └── t.cab.foo │ ├── iso │ │ ├── ChangeLog │ │ ├── small.iso │ │ └── t.iso.foo │ ├── rar │ │ ├── basic.rar │ │ ├── broken.rar │ │ ├── rar_absolute.rar │ │ ├── rar_password.rar │ │ ├── rar_relative.rar │ │ ├── rar_trailing.rar │ │ ├── rar_invalidpath.rar │ │ └── non_ascii_corrupted.rar │ ├── rpm │ │ ├── broken.rpm │ │ ├── renamed.rpm │ │ ├── rpm_trailing.rpm │ │ ├── xz-compressed-cpio.rpm │ │ ├── elfinfo-1.0-1.fc9.src.rpm │ │ ├── python-glc-0.7.1-1.src.rpm │ │ ├── kmod-openafs-1.6.10-2.2.6.18_8.1.1.el5.i686.rpm │ │ └── extract_once │ │ │ └── libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm │ ├── zstd │ │ ├── some.zst │ │ └── sample.tar.zst │ ├── cpio │ │ ├── t.cpio.foo │ │ ├── cpio_broken.cpio │ │ ├── cpio_absolute.cpio │ │ ├── cpio_relative.cpio │ │ ├── cpio_trailing.cpio │ │ ├── cpio-invalidpath.cpio │ │ └── elfinfo-1.0-1.fc9.src.cpio │ ├── tar │ │ ├── special.tar │ │ ├── testtar.tar │ │ ├── gem │ │ │ └── panchira-0.1.1.gem │ │ └── testtar.README │ ├── tgz │ │ ├── broken.tar.gz │ │ ├── relative.tar.gz │ │ ├── symlink.tar.gz │ │ ├── tgz_unicode.tgz │ │ ├── trailing.tar.gz │ │ ├── no_trailing.tar.gz │ │ ├── tarred_gzipped.gz │ │ ├── tarred_gzipped.tgz │ │ ├── trailing2.tar.gz │ │ ├── absolute_path.tar.gz │ │ ├── tarred_gzipped.tar.gz │ │ ├── mixed_case_and_symlink.tgz │ │ └── commons-logging-1.1.2-src.tar.gz │ ├── xar │ │ ├── xar-1.4.xar │ │ ├── origin.ABOUT │ │ └── xar-1.4.xar.ABOUT │ ├── bz2 │ │ ├── bz_invalidpath.bz2 │ │ ├── bz2_not_tarred_broken.bz2 │ │ ├── single_file_not_tarred.bz2 │ │ ├── single_file_trailing_data.bz2 │ │ ├── bzip2_multistream │ │ │ ├── example-file.csv.bz2 │ │ │ └── example-file.csv.bz2.ABOUT │ │ └── bzip2_with_gentoo_trailing_data │ │ │ ├── sys-libs%3Azlib-1.2.3-r1~1.tbz2 │ │ │ └── sys-libs%3Azlib-1.2.3-r1~1.tbz2.ABOUT │ ├── tbz │ │ ├── iproute2.tar.bz2 │ │ ├── tarred_bzipped.bz │ │ ├── tarred_bzipped.tbz │ │ ├── absolute_path.tar.bz2 │ │ ├── tarred_bzipped.tar.bz │ │ ├── tarred_bzipped.tar.bz2 │ │ ├── bz2withtar_relative.tar.bz2 │ │ ├── tarred_bzipped_broken.tar.bz2 │ │ ├── single_file_trailing_data.tar.gz │ │ └── bzip2_multistream │ │ │ ├── example-file.csv.tar.bz2 │ │ │ └── example-file.csv.tar.bz2.ABOUT │ ├── zipslip │ │ ├── zip-slip.zip │ │ ├── zip-slip-win.zip │ │ ├── zip-slip.tar.ABOUT │ │ ├── zip-slip.zip.ABOUT │ │ ├── zip-slip-win.tar.ABOUT │ │ └── zip-slip-win.zip.ABOUT │ ├── graffle │ │ └── example.graffle │ ├── relative_path │ │ └── basic.zip │ ├── deb │ │ ├── wget-el_0.5.0-8_all.deb │ │ ├── adduser_3.112ubuntu1_all.deb │ │ ├── libjama-dev_1.2.4-2_all.deb │ │ ├── adduser_3.113+nmu3ubuntu3_all.deb │ │ └── origin.README │ ├── shar │ │ └── demo-spring-boot.jar │ ├── svgz │ │ └── insert-emptyframe.svgz │ ├── weird_names │ │ ├── weird_names.7z │ │ ├── weird_names.ar │ │ ├── weird_names.iso │ │ ├── weird_names.rar │ │ ├── weird_names.tar │ │ ├── weird_names.zip │ │ └── weird_names.cpio │ ├── lzma_xz │ │ ├── orionsocket-1.0.9.tar.lzma │ │ ├── MinGW-5.1.6.exe-src.tar.lzma │ │ ├── texlive-core-patches-20.tar.xz │ │ ├── coreutils-8.5-patches-1.tar.lzma │ │ ├── binutils-2.22.52.0.3-patches-1.0.tar.xz │ │ └── ABOUT.txt │ └── docs │ │ └── origin.README │ ├── sevenzip │ ├── listings │ │ ├── single_file.z.mac-expected.json │ │ ├── single_file.tarz.mac-expected.json │ │ ├── tarred_bzipped.tar.bz2.listing-expected.json │ │ ├── tarred_bzipped_broken.tar.bz2.listing-expected.json │ │ ├── texlive-core-patches-20.tar.xz.listing-expected.json │ │ ├── libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm.listing-expected.json │ │ ├── demo-spring-boot.sh.listing-expected.json │ │ ├── insert-emptyframe.svgz.listing-expected.json │ │ ├── adduser_3.113+nmu3ubuntu3_all.deb-linux.listing-expected.json │ │ ├── single_file.z.mac │ │ ├── single_file.tarz.mac │ │ ├── tarred_bzipped.tar.bz2.listing │ │ ├── tarred_bzipped_broken.tar.bz2.listing │ │ ├── t.cbr-linux.listing-expected.json │ │ ├── insert-emptyframe.svgz.listing │ │ ├── texlive-core-patches-20.tar.xz.listing │ │ ├── adduser_3.113+nmu3ubuntu3_all.deb-linux.listing │ │ ├── libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm.listing │ │ └── demo-spring-boot.sh.listing │ ├── weird_names.7z-extract-expected-win.json │ ├── weird_names.ar-extract-expected-win.json │ ├── weird_names.tar-extract-expected-win.json │ ├── weird_names.zip-extract-expected-win.json │ ├── weird_names.cpio-extract-expected-win.json │ ├── special.tar │ ├── weird_names.7z │ ├── weird_names.ar │ ├── weird_names.cpio │ ├── weird_names.tar │ ├── weird_names.zip │ ├── relative_nested.zip │ ├── absolute_path.tar-extract-expected.json │ ├── absolute_path.tar-extract-expected-win.json │ ├── special.tar-extract-errors-expected-win.json │ ├── special.tar-extract-expected.json │ ├── special.tar-extract-expected-win.json │ ├── relative_nested.zip-extract-expected.json │ ├── relative_nested.zip-extract-expected-win.json │ ├── weird_names.ar-extract-errors-expected.json │ └── weird_names.ar-extract-expected.json │ ├── api │ ├── c.zip │ └── doc.docx │ ├── cli │ ├── extract │ │ ├── broken.tar.gz │ │ ├── some.tar.gz │ │ └── tarred_gzipped.tgz │ ├── extract_ignore │ │ └── a.zip │ ├── replace-originals │ │ ├── rake.1.gz.ABOUT │ │ ├── issue6550.gz.ABOUT │ │ ├── rake.1.gz │ │ └── issue6550.gz │ ├── extract_shallow │ │ └── top.zip │ ├── extract_relative_path │ │ └── basic.zip │ ├── unicodearch │ │ └── Korištenjem Kärkkäinen – Sanders.tgz │ └── extract_nuget │ │ └── 00000xxxxx-00000xxxx-00000xxxx-00000xxxx │ │ └── 00000xxxxx-00000xxxx-00000xxxx-00000xxxx │ │ └── microsoft.aspnet.identity.entityframework.2.2.1.nupkg │ ├── vmimage │ ├── foobar.qcow2.tar.gz │ ├── bios-tables-test.x86_64.iso.qcow2.tar.gz │ ├── bios-tables-test.x86_64.iso.qcow2.tar.gz.ABOUT │ └── CHANGELOG.rst │ └── patool.ABOUT ├── .gitattributes ├── setup.py ├── docs ├── scripts │ ├── doc8_style_check.sh │ └── sphinx_build_link_check.sh ├── source │ └── index.rst ├── Makefile └── make.bat ├── etc ├── scripts │ ├── requirements.txt │ ├── gen_pypi_simple.py.ABOUT │ ├── utils_pip_compatibility_tags.py.ABOUT │ ├── test_utils_pip_compatibility_tags.py.ABOUT │ ├── utils_thirdparty.py.ABOUT │ ├── utils_pypi_supported_tags.py.ABOUT │ └── test_utils_pypi_supported_tags.py.ABOUT └── ci │ ├── install_sudo.sh │ ├── macports-ci.ABOUT │ └── mit.LICENSE ├── MANIFEST.in ├── NOTICE ├── src └── extractcode │ └── NOTICE ├── AUTHORS.rst ├── .readthedocs.yml ├── extractcode.ABOUT ├── requirements-dev.txt └── .github └── workflows └── docs-ci.yml /tests/data/new_name/ext/test.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/new_name/noext/TEST_1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/new_name/noext/test: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/new_name/noext/test_2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/extract/tree/a/a.txt: -------------------------------------------------------------------------------- 1 | b 2 | -------------------------------------------------------------------------------- /tests/data/extract/tree/b/a.txt: -------------------------------------------------------------------------------- 1 | b 2 | -------------------------------------------------------------------------------- /tests/data/extract/tree/c/a.txt: -------------------------------------------------------------------------------- 1 | b 2 | -------------------------------------------------------------------------------- /tests/data/new_name/ext/test_2.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/patch/not_patches/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/new_name/ext/test.txt_1/.dummy: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/new_name/ext/test_1.txt/.dummy: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/new_name/noext/test_3/.dummy: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/patch/not_patches/not.a.diff-extract: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/patch/not_patches/not.a.patch-extract: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/archive/gzip/random_binary.data: -------------------------------------------------------------------------------- 1 | qweqwe 2 | -------------------------------------------------------------------------------- /tests/data/patch/not_patches/icu/series: -------------------------------------------------------------------------------- 1 | ekioh-config.patch 2 | -------------------------------------------------------------------------------- /tests/data/patch/patches/problematic/OpenSSO.patch.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/single_file.z.mac-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.7z-extract-expected-win.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.ar-extract-expected-win.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.tar-extract-expected-win.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.zip-extract-expected-win.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/single_file.tarz.mac-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.cpio-extract-expected-win.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/archive/TODO/shar/tar.shar.README: -------------------------------------------------------------------------------- 1 | shar -z tst.tar > tar.shar 2 | -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/tarred_bzipped.tar.bz2.listing-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/extract/scm/dot-cvsignore: -------------------------------------------------------------------------------- 1 | the content of this file doesn't matter 2 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/webkit/opensource/patches/sync_xhr.patch.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/tarred_bzipped_broken.tar.bz2.listing-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/texlive-core-patches-20.tar.xz.listing-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/archive/TODO/shar/tst.makeself.REDAME: -------------------------------------------------------------------------------- 1 | $ makeself tst tst.makeself test ./tst/abc 2 | -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm.listing-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/data/api/c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/api/c.zip -------------------------------------------------------------------------------- /tests/data/api/doc.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/api/doc.docx -------------------------------------------------------------------------------- /tests/data/archive/not_archive/hashfile: -------------------------------------------------------------------------------- 1 | 80de10a8b9f13365de8cc4bbf8efec5e /etc/rsyslog.d/50-default.conf 2 | -------------------------------------------------------------------------------- /tests/data/archive/7z/z.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/7z/z.7z -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Ignore all Git auto CR/LF line endings conversions 2 | * -text 3 | pyproject.toml export-subst 4 | -------------------------------------------------------------------------------- /tests/data/archive/7z/t .7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/7z/t .7z -------------------------------------------------------------------------------- /tests/data/archive/ar/liby.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/liby.a -------------------------------------------------------------------------------- /tests/data/archive/cbr/t.cbr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cbr/t.cbr -------------------------------------------------------------------------------- /tests/data/archive/cbz/t.cbz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cbz/t.cbz -------------------------------------------------------------------------------- /tests/data/archive/gzip/s.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/gzip/s.gz -------------------------------------------------------------------------------- /tests/data/archive/Z/tr2tex.Z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/Z/tr2tex.Z -------------------------------------------------------------------------------- /tests/data/archive/cb7/t .cb7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cb7/t .cb7 -------------------------------------------------------------------------------- /tests/data/archive/dia/dia.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/dia/dia.dia -------------------------------------------------------------------------------- /tests/data/archive/lz4/some.lz4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/lz4/some.lz4 -------------------------------------------------------------------------------- /tests/data/archive/lzip/some.lz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/lzip/some.lz -------------------------------------------------------------------------------- /tests/data/archive/wmz/Go.wmz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/wmz/Go.wmz -------------------------------------------------------------------------------- /tests/data/archive/zip/test.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/test.zip -------------------------------------------------------------------------------- /tests/data/patch/not_patches/jfsutils/series: -------------------------------------------------------------------------------- 1 | # Need for fsck and mkfs to be able to open the device 2 | largefile.patch 3 | -------------------------------------------------------------------------------- /tests/data/sevenzip/special.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/sevenzip/special.tar -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import setuptools 4 | 5 | if __name__ == "__main__": 6 | setuptools.setup() 7 | -------------------------------------------------------------------------------- /tests/data/archive/ar/liby.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/liby.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/cab/basic.cab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cab/basic.cab -------------------------------------------------------------------------------- /tests/data/archive/cab/t.cab.foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cab/t.cab.foo -------------------------------------------------------------------------------- /tests/data/archive/cb7/t.cb7.foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cb7/t.cb7.foo -------------------------------------------------------------------------------- /tests/data/archive/cbr/t.cbr.foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cbr/t.cbr.foo -------------------------------------------------------------------------------- /tests/data/archive/cbz/t.cbz.foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cbz/t.cbz.foo -------------------------------------------------------------------------------- /tests/data/archive/iso/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/iso/ChangeLog -------------------------------------------------------------------------------- /tests/data/archive/iso/small.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/iso/small.iso -------------------------------------------------------------------------------- /tests/data/archive/iso/t.iso.foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/iso/t.iso.foo -------------------------------------------------------------------------------- /tests/data/archive/rar/basic.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rar/basic.rar -------------------------------------------------------------------------------- /tests/data/archive/rar/broken.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rar/broken.rar -------------------------------------------------------------------------------- /tests/data/archive/rpm/broken.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rpm/broken.rpm -------------------------------------------------------------------------------- /tests/data/archive/zip/basic.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/basic.zip -------------------------------------------------------------------------------- /tests/data/archive/zstd/some.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zstd/some.zst -------------------------------------------------------------------------------- /tests/data/extract/special/t.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/special/t.tgz -------------------------------------------------------------------------------- /tests/data/archive/7z/corrupted7z.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/7z/corrupted7z.7z -------------------------------------------------------------------------------- /tests/data/archive/ar/ar_trailing.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/ar_trailing.a -------------------------------------------------------------------------------- /tests/data/archive/cpio/t.cpio.foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cpio/t.cpio.foo -------------------------------------------------------------------------------- /tests/data/archive/gzip/twofiles.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/gzip/twofiles.gz -------------------------------------------------------------------------------- /tests/data/archive/rpm/renamed.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rpm/renamed.rpm -------------------------------------------------------------------------------- /tests/data/archive/tar/special.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tar/special.tar -------------------------------------------------------------------------------- /tests/data/archive/tar/testtar.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tar/testtar.tar -------------------------------------------------------------------------------- /tests/data/archive/tgz/broken.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/broken.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/wmz/image003.wmz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/wmz/image003.wmz -------------------------------------------------------------------------------- /tests/data/archive/xar/xar-1.4.xar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/xar/xar-1.4.xar -------------------------------------------------------------------------------- /tests/data/archive/zip/dup_names.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/dup_names.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/unicode.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/unicode.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/unicode2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/unicode2.zip -------------------------------------------------------------------------------- /tests/data/cli/extract/broken.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/cli/extract/broken.tar.gz -------------------------------------------------------------------------------- /tests/data/cli/extract/some.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/cli/extract/some.tar.gz -------------------------------------------------------------------------------- /tests/data/cli/extract_ignore/a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/cli/extract_ignore/a.zip -------------------------------------------------------------------------------- /tests/data/cli/replace-originals/rake.1.gz.ABOUT: -------------------------------------------------------------------------------- 1 | download_url: https://github.com/ruby/rake/blob/v0.9.2.2/doc/rake.1.gz?raw=true 2 | -------------------------------------------------------------------------------- /tests/data/extract/TODO/ipm430.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/ipm430.rar -------------------------------------------------------------------------------- /tests/data/extract/all_formats/c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/all_formats/c.zip -------------------------------------------------------------------------------- /tests/data/extract/generator/c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/generator/c.zip -------------------------------------------------------------------------------- /tests/data/extract/ignore/alpha.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/ignore/alpha.zip -------------------------------------------------------------------------------- /tests/data/extract/scm/dot-svn.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/scm/dot-svn.zip -------------------------------------------------------------------------------- /tests/data/extract/scm/input.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/scm/input.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/tree/a/a.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/tree/a/a.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/tree/b/b.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/tree/b/b.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/tree/c/a.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/tree/c/a.tar.gz -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/sevenzip/weird_names.7z -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.ar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/sevenzip/weird_names.ar -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.cpio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/sevenzip/weird_names.cpio -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/sevenzip/weird_names.tar -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/sevenzip/weird_names.zip -------------------------------------------------------------------------------- /tests/data/archive/7z/7zip_password.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/7z/7zip_password.7z -------------------------------------------------------------------------------- /tests/data/archive/7z/7zip_relative.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/7z/7zip_relative.7z -------------------------------------------------------------------------------- /tests/data/archive/7z/7zip_trailing.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/7z/7zip_trailing.7z -------------------------------------------------------------------------------- /tests/data/archive/7z/7zip_unicode.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/7z/7zip_unicode.7z -------------------------------------------------------------------------------- /tests/data/archive/Z/tkWWW-0.11.tar.Z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/Z/tkWWW-0.11.tar.Z -------------------------------------------------------------------------------- /tests/data/archive/ar/liby-corrupted.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/liby-corrupted.a -------------------------------------------------------------------------------- /tests/data/archive/ar/winlib/zlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/winlib/zlib.lib -------------------------------------------------------------------------------- /tests/data/archive/dia/dia_broken.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/dia/dia_broken.dia -------------------------------------------------------------------------------- /tests/data/archive/gzip/mysql-arch.ARZ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/gzip/mysql-arch.ARZ -------------------------------------------------------------------------------- /tests/data/archive/lz4/sample.tar.lz4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/lz4/sample.tar.lz4 -------------------------------------------------------------------------------- /tests/data/archive/lzip/sample.tar.lz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/lzip/sample.tar.lz -------------------------------------------------------------------------------- /tests/data/archive/tgz/relative.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/relative.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/tgz/symlink.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/symlink.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/tgz/tgz_unicode.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/tgz_unicode.tgz -------------------------------------------------------------------------------- /tests/data/archive/tgz/trailing.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/trailing.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/zip/jar/simple.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/jar/simple.jar -------------------------------------------------------------------------------- /tests/data/archive/zip/timezone/c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/timezone/c.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/zip_broken.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/zip_broken.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/zip_unicode.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/zip_unicode.zip -------------------------------------------------------------------------------- /tests/data/archive/zstd/sample.tar.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zstd/sample.tar.zst -------------------------------------------------------------------------------- /tests/data/cli/extract_shallow/top.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/cli/extract_shallow/top.zip -------------------------------------------------------------------------------- /tests/data/cli/replace-originals/issue6550.gz.ABOUT: -------------------------------------------------------------------------------- 1 | download_url: https://golang.org/src/compress/gzip/testdata/issue6550.gz.base64 2 | -------------------------------------------------------------------------------- /tests/data/extract/corrupted/a.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/corrupted/a.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/replace-originals/rake.1.gz.ABOUT: -------------------------------------------------------------------------------- 1 | download_url: https://github.com/ruby/rake/blob/v0.9.2.2/doc/rake.1.gz?raw=true 2 | -------------------------------------------------------------------------------- /tests/data/vmimage/foobar.qcow2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/vmimage/foobar.qcow2.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/7z/7zip_invalidpath.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/7z/7zip_invalidpath.7z -------------------------------------------------------------------------------- /tests/data/archive/TODO/shar/tst.makeself: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/shar/tst.makeself -------------------------------------------------------------------------------- /tests/data/archive/ar/ar_invalidpath.ar: -------------------------------------------------------------------------------- 1 | ! 2 | this\that/ 1250163067 1000 1000 100644 15 ` 3 | test backslash 4 | 5 | -------------------------------------------------------------------------------- /tests/data/archive/ar/winlib/freetype.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/winlib/freetype.lib -------------------------------------------------------------------------------- /tests/data/archive/ar/winlib/gsdll32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/winlib/gsdll32.lib -------------------------------------------------------------------------------- /tests/data/archive/ar/winlib/htmlhelp.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/winlib/htmlhelp.lib -------------------------------------------------------------------------------- /tests/data/archive/ar/winlib/libmysql.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/winlib/libmysql.lib -------------------------------------------------------------------------------- /tests/data/archive/ar/winlib/pyexpat.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/winlib/pyexpat.lib -------------------------------------------------------------------------------- /tests/data/archive/bz2/bz_invalidpath.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/bz2/bz_invalidpath.bz2 -------------------------------------------------------------------------------- /tests/data/archive/cpio/cpio_broken.cpio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cpio/cpio_broken.cpio -------------------------------------------------------------------------------- /tests/data/archive/dia/dia_trailing.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/dia/dia_trailing.dia -------------------------------------------------------------------------------- /tests/data/archive/gzip/backslash_path.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/gzip/backslash_path.gz -------------------------------------------------------------------------------- /tests/data/archive/gzip/leading_data.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/gzip/leading_data.gz -------------------------------------------------------------------------------- /tests/data/archive/gzip/trailing_data.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/gzip/trailing_data.gz -------------------------------------------------------------------------------- /tests/data/archive/rar/rar_absolute.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rar/rar_absolute.rar -------------------------------------------------------------------------------- /tests/data/archive/rar/rar_password.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rar/rar_password.rar -------------------------------------------------------------------------------- /tests/data/archive/rar/rar_relative.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rar/rar_relative.rar -------------------------------------------------------------------------------- /tests/data/archive/rar/rar_trailing.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rar/rar_trailing.rar -------------------------------------------------------------------------------- /tests/data/archive/rpm/rpm_trailing.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rpm/rpm_trailing.rpm -------------------------------------------------------------------------------- /tests/data/archive/tbz/iproute2.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tbz/iproute2.tar.bz2 -------------------------------------------------------------------------------- /tests/data/archive/tbz/tarred_bzipped.bz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tbz/tarred_bzipped.bz -------------------------------------------------------------------------------- /tests/data/archive/tbz/tarred_bzipped.tbz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tbz/tarred_bzipped.tbz -------------------------------------------------------------------------------- /tests/data/archive/tgz/no_trailing.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/no_trailing.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/tgz/tarred_gzipped.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/tarred_gzipped.gz -------------------------------------------------------------------------------- /tests/data/archive/tgz/tarred_gzipped.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/tarred_gzipped.tgz -------------------------------------------------------------------------------- /tests/data/archive/tgz/trailing2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/trailing2.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/zipslip/zip-slip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zipslip/zip-slip.zip -------------------------------------------------------------------------------- /tests/data/cli/extract/tarred_gzipped.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/cli/extract/tarred_gzipped.tgz -------------------------------------------------------------------------------- /tests/data/extract/TODO/shallow/shal.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/shallow/shal.tgz -------------------------------------------------------------------------------- /tests/data/extract/all_formats/doc.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/all_formats/doc.docx -------------------------------------------------------------------------------- /tests/data/extract/ignore/gamma/gamma.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/ignore/gamma/gamma.zip -------------------------------------------------------------------------------- /tests/data/extract/office_docs/abc.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/office_docs/abc.docx -------------------------------------------------------------------------------- /tests/data/extract/office_docs/excel.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/office_docs/excel.xlsx -------------------------------------------------------------------------------- /tests/data/extract/office_docs/ppt.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/office_docs/ppt.pptx -------------------------------------------------------------------------------- /tests/data/extract/replace-originals/issue6550.gz.ABOUT: -------------------------------------------------------------------------------- 1 | download_url: https://golang.org/src/compress/gzip/testdata/issue6550.gz.base64 2 | -------------------------------------------------------------------------------- /tests/data/extract/small/empty_small.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/small/empty_small.zip -------------------------------------------------------------------------------- /tests/data/extract/zipslip/zip-slip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/zipslip/zip-slip.zip -------------------------------------------------------------------------------- /tests/data/sevenzip/relative_nested.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/sevenzip/relative_nested.zip -------------------------------------------------------------------------------- /tests/data/archive/ar/winlib/php4embed.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/ar/winlib/php4embed.lib -------------------------------------------------------------------------------- /tests/data/archive/cpio/cpio_absolute.cpio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cpio/cpio_absolute.cpio -------------------------------------------------------------------------------- /tests/data/archive/cpio/cpio_relative.cpio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cpio/cpio_relative.cpio -------------------------------------------------------------------------------- /tests/data/archive/cpio/cpio_trailing.cpio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cpio/cpio_trailing.cpio -------------------------------------------------------------------------------- /tests/data/archive/graffle/example.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/graffle/example.graffle -------------------------------------------------------------------------------- /tests/data/archive/gzip/file_4.26-1.diff.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/gzip/file_4.26-1.diff.gz -------------------------------------------------------------------------------- /tests/data/archive/not_archive/wildtest.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/not_archive/wildtest.txt -------------------------------------------------------------------------------- /tests/data/archive/rar/rar_invalidpath.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rar/rar_invalidpath.rar -------------------------------------------------------------------------------- /tests/data/archive/relative_path/basic.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/relative_path/basic.zip -------------------------------------------------------------------------------- /tests/data/archive/tgz/absolute_path.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/absolute_path.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/zip/relative_nested.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/relative_nested.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/weird_file_name.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/weird_file_name.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/zip_invalidpath.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/zip_invalidpath.zip -------------------------------------------------------------------------------- /tests/data/archive/zipslip/zip-slip-win.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zipslip/zip-slip-win.zip -------------------------------------------------------------------------------- /tests/data/cli/replace-originals/rake.1.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/cli/replace-originals/rake.1.gz -------------------------------------------------------------------------------- /tests/data/extract/TODO/file_4.26-1.diff.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/file_4.26-1.diff.gz -------------------------------------------------------------------------------- /tests/data/extract/ar_tree/winlib/zlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/ar_tree/winlib/zlib.lib -------------------------------------------------------------------------------- /tests/data/extract/basic_non_nested.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/basic_non_nested.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/relative_path/basic.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/relative_path/basic.zip -------------------------------------------------------------------------------- /tests/data/extract/zipslip/zip-slip-win.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/zipslip/zip-slip-win.zip -------------------------------------------------------------------------------- /tests/data/archive/cpio/cpio-invalidpath.cpio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cpio/cpio-invalidpath.cpio -------------------------------------------------------------------------------- /tests/data/archive/deb/wget-el_0.5.0-8_all.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/deb/wget-el_0.5.0-8_all.deb -------------------------------------------------------------------------------- /tests/data/archive/dia/broken/PublisherUML.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/dia/broken/PublisherUML.dia -------------------------------------------------------------------------------- /tests/data/archive/dia/guess/infoset-doc.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/dia/guess/infoset-doc.dia -------------------------------------------------------------------------------- /tests/data/archive/rar/non_ascii_corrupted.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rar/non_ascii_corrupted.rar -------------------------------------------------------------------------------- /tests/data/archive/rpm/xz-compressed-cpio.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rpm/xz-compressed-cpio.rpm -------------------------------------------------------------------------------- /tests/data/archive/shar/demo-spring-boot.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/shar/demo-spring-boot.jar -------------------------------------------------------------------------------- /tests/data/archive/svgz/insert-emptyframe.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/svgz/insert-emptyframe.svgz -------------------------------------------------------------------------------- /tests/data/archive/tar/gem/panchira-0.1.1.gem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tar/gem/panchira-0.1.1.gem -------------------------------------------------------------------------------- /tests/data/archive/tbz/absolute_path.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tbz/absolute_path.tar.bz2 -------------------------------------------------------------------------------- /tests/data/archive/tbz/tarred_bzipped.tar.bz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tbz/tarred_bzipped.tar.bz -------------------------------------------------------------------------------- /tests/data/archive/tbz/tarred_bzipped.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tbz/tarred_bzipped.tar.bz2 -------------------------------------------------------------------------------- /tests/data/archive/tgz/tarred_gzipped.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/tarred_gzipped.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/weird_names/weird_names.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/weird_names/weird_names.7z -------------------------------------------------------------------------------- /tests/data/archive/weird_names/weird_names.ar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/weird_names/weird_names.ar -------------------------------------------------------------------------------- /tests/data/archive/weird_names/weird_names.iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/weird_names/weird_names.iso -------------------------------------------------------------------------------- /tests/data/archive/weird_names/weird_names.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/weird_names/weird_names.rar -------------------------------------------------------------------------------- /tests/data/archive/weird_names/weird_names.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/weird_names/weird_names.tar -------------------------------------------------------------------------------- /tests/data/archive/weird_names/weird_names.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/weird_names/weird_names.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/moq.4.2.1507.118.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/moq.4.2.1507.118.nupkg -------------------------------------------------------------------------------- /tests/data/archive/zip/zip_password_nexb.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/zip_password_nexb.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/zip_trailing_data.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/zip_trailing_data.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/zip_trailing_data2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/zip_trailing_data2.zip -------------------------------------------------------------------------------- /tests/data/cli/extract_relative_path/basic.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/cli/extract_relative_path/basic.zip -------------------------------------------------------------------------------- /tests/data/cli/replace-originals/issue6550.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/cli/replace-originals/issue6550.gz -------------------------------------------------------------------------------- /tests/data/extract/ar_tree/winlib/gsdll32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/ar_tree/winlib/gsdll32.lib -------------------------------------------------------------------------------- /tests/data/extract/ar_tree/winlib/htmlhelp.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/ar_tree/winlib/htmlhelp.lib -------------------------------------------------------------------------------- /tests/data/extract/ar_tree/winlib/pyexpat.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/ar_tree/winlib/pyexpat.lib -------------------------------------------------------------------------------- /tests/data/extract/nested/nested_tars.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/nested/nested_tars.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/readonly/read_only.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/readonly/read_only.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/replace-originals/rake.1.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/replace-originals/rake.1.gz -------------------------------------------------------------------------------- /tests/data/archive/TODO/shar/tar-1.11.8.shar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/shar/tar-1.11.8.shar.gz -------------------------------------------------------------------------------- /tests/data/archive/bz2/bz2_not_tarred_broken.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/bz2/bz2_not_tarred_broken.bz2 -------------------------------------------------------------------------------- /tests/data/archive/rpm/elfinfo-1.0-1.fc9.src.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rpm/elfinfo-1.0-1.fc9.src.rpm -------------------------------------------------------------------------------- /tests/data/archive/weird_names/weird_names.cpio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/weird_names/weird_names.cpio -------------------------------------------------------------------------------- /tests/data/archive/zip/backslash/AspectJTest.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/backslash/AspectJTest.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/backslash/backslash1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/backslash/backslash1.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/backslash/boo-0.3-src.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/backslash/boo-0.3-src.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/timezone/projecttest.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/timezone/projecttest.zip -------------------------------------------------------------------------------- /tests/data/extract/TODO/cannot_open/corrupted.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/cannot_open/corrupted.gz -------------------------------------------------------------------------------- /tests/data/extract/TODO/cannot_open/password.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/cannot_open/password.zip -------------------------------------------------------------------------------- /tests/data/extract/TODO/jar_war_ear/balancer.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/jar_war_ear/balancer.war -------------------------------------------------------------------------------- /tests/data/extract/TODO/unicode/ticket_3013.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/unicode/ticket_3013.zip -------------------------------------------------------------------------------- /tests/data/extract/ar_tree/winlib/php4embed.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/ar_tree/winlib/php4embed.lib -------------------------------------------------------------------------------- /tests/data/sevenzip/absolute_path.tar-extract-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | "/tmp/", 3 | "/tmp/subdir/", 4 | "/tmp/subdir/a.txt", 5 | "/tmp/subdir/b.txt" 6 | ] -------------------------------------------------------------------------------- /tests/data/archive/bz2/single_file_not_tarred.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/bz2/single_file_not_tarred.bz2 -------------------------------------------------------------------------------- /tests/data/archive/cpio/elfinfo-1.0-1.fc9.src.cpio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/cpio/elfinfo-1.0-1.fc9.src.cpio -------------------------------------------------------------------------------- /tests/data/archive/deb/adduser_3.112ubuntu1_all.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/deb/adduser_3.112ubuntu1_all.deb -------------------------------------------------------------------------------- /tests/data/archive/deb/libjama-dev_1.2.4-2_all.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/deb/libjama-dev_1.2.4-2_all.deb -------------------------------------------------------------------------------- /tests/data/archive/rpm/python-glc-0.7.1-1.src.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rpm/python-glc-0.7.1-1.src.rpm -------------------------------------------------------------------------------- /tests/data/archive/tbz/bz2withtar_relative.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tbz/bz2withtar_relative.tar.bz2 -------------------------------------------------------------------------------- /tests/data/archive/tgz/mixed_case_and_symlink.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/mixed_case_and_symlink.tgz -------------------------------------------------------------------------------- /tests/data/archive/zip/relative_parent_folders.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/relative_parent_folders.zip -------------------------------------------------------------------------------- /tests/data/extract/TODO/permission_cbrtimer.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/permission_cbrtimer.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/broken_link/broken-link.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/broken_link/broken-link.tar.bz2 -------------------------------------------------------------------------------- /tests/data/extract/replace-originals/issue6550.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/replace-originals/issue6550.gz -------------------------------------------------------------------------------- /tests/data/sevenzip/absolute_path.tar-extract-expected-win.json: -------------------------------------------------------------------------------- 1 | [ 2 | "/tmp/", 3 | "/tmp/subdir/", 4 | "/tmp/subdir/a.txt", 5 | "/tmp/subdir/b.txt" 6 | ] -------------------------------------------------------------------------------- /tests/data/sevenzip/special.tar-extract-errors-expected-win.json: -------------------------------------------------------------------------------- 1 | "Can not create symbolic link : A required privilege is not held by the client. : .\\2-SYMTYPE" -------------------------------------------------------------------------------- /tests/data/archive/TODO/text_content/high_ancest.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/text_content/high_ancest.zip -------------------------------------------------------------------------------- /tests/data/archive/TODO/text_content/trailing_data.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/text_content/trailing_data.gz -------------------------------------------------------------------------------- /tests/data/archive/bz2/single_file_trailing_data.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/bz2/single_file_trailing_data.bz2 -------------------------------------------------------------------------------- /tests/data/archive/lzma_xz/orionsocket-1.0.9.tar.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/lzma_xz/orionsocket-1.0.9.tar.lzma -------------------------------------------------------------------------------- /tests/data/archive/tbz/tarred_bzipped_broken.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tbz/tarred_bzipped_broken.tar.bz2 -------------------------------------------------------------------------------- /tests/data/extract/TODO/file_with_tars_extracted.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/file_with_tars_extracted.zip -------------------------------------------------------------------------------- /tests/data/extract/TODO/jar_war_ear/jaxrpc-simple.ear: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/jar_war_ear/jaxrpc-simple.ear -------------------------------------------------------------------------------- /tests/data/extract/TODO/jar_war_ear/jaxrpc-simple.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/jar_war_ear/jaxrpc-simple.war -------------------------------------------------------------------------------- /tests/data/extract/space-zip/with spaces in name.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/space-zip/with spaces in name.zip -------------------------------------------------------------------------------- /tests/data/archive/TODO/mixed_case_ticket_6897/case.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/mixed_case_ticket_6897/case.tgz -------------------------------------------------------------------------------- /tests/data/archive/TODO/weird_tars/bitarray-0.8.1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/weird_tars/bitarray-0.8.1.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/TODO/weird_tars/deferargs-0.4.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/weird_tars/deferargs-0.4.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/deb/adduser_3.113+nmu3ubuntu3_all.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/deb/adduser_3.113+nmu3ubuntu3_all.deb -------------------------------------------------------------------------------- /tests/data/archive/dia/broken/ServletProxyGenerator.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/dia/broken/ServletProxyGenerator.dia -------------------------------------------------------------------------------- /tests/data/archive/dia/broken/schedulerClassDiagram.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/dia/broken/schedulerClassDiagram.dia -------------------------------------------------------------------------------- /tests/data/archive/lzma_xz/MinGW-5.1.6.exe-src.tar.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/lzma_xz/MinGW-5.1.6.exe-src.tar.lzma -------------------------------------------------------------------------------- /tests/data/archive/tbz/single_file_trailing_data.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tbz/single_file_trailing_data.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/tgz/commons-logging-1.1.2-src.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tgz/commons-logging-1.1.2-src.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/TODO/links/prune_link_no_boms.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/links/prune_link_no_boms.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/TODO/office_docs/ofbiz-overview.sdd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/office_docs/ofbiz-overview.sdd -------------------------------------------------------------------------------- /tests/data/extract/space-tgz/with spaces in name.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/space-tgz/with spaces in name.tar.gz -------------------------------------------------------------------------------- /tests/data/patch/not_patches/changelog/CHANGELOG.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/patch/not_patches/changelog/CHANGELOG.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/TODO/dmg/easy-subclipse-mylyn-2.0.0.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/dmg/easy-subclipse-mylyn-2.0.0.dmg -------------------------------------------------------------------------------- /tests/data/archive/TODO/text_content/absolute_path.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/text_content/absolute_path.tar.bz2 -------------------------------------------------------------------------------- /tests/data/archive/TODO/text_content/absolute_path.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/text_content/absolute_path.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/TODO/weird_tars/empty-tar-no-dir.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/weird_tars/empty-tar-no-dir.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/TODO/weird_tars/grapefruit-0.1a3.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/weird_tars/grapefruit-0.1a3.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/lzma_xz/texlive-core-patches-20.tar.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/lzma_xz/texlive-core-patches-20.tar.xz -------------------------------------------------------------------------------- /tests/data/extract/TODO/empty_dir/yazd_src_Beta_3_0.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/empty_dir/yazd_src_Beta_3_0.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/TODO/jar_war_ear/jaxrpc-simpleShare.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/jar_war_ear/jaxrpc-simpleShare.jar -------------------------------------------------------------------------------- /docs/scripts/doc8_style_check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # halt script on error 3 | set -e 4 | # Check for Style Code Violations 5 | doc8 --max-line-length 100 source --ignore D000 --quiet -------------------------------------------------------------------------------- /docs/scripts/sphinx_build_link_check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # halt script on error 3 | set -e 4 | # Build locally, and then check links 5 | sphinx-build -E -W -b linkcheck source build -------------------------------------------------------------------------------- /tests/data/archive/TODO/unicodeticket_2859/unicode_names.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/unicodeticket_2859/unicode_names.tgz -------------------------------------------------------------------------------- /tests/data/archive/bz2/bzip2_multistream/example-file.csv.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/bz2/bzip2_multistream/example-file.csv.bz2 -------------------------------------------------------------------------------- /tests/data/archive/lzma_xz/coreutils-8.5-patches-1.tar.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/lzma_xz/coreutils-8.5-patches-1.tar.lzma -------------------------------------------------------------------------------- /tests/data/archive/zip/directory-with-no-trailing-slash.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/directory-with-no-trailing-slash.zip -------------------------------------------------------------------------------- /tests/data/archive/zip/exceptionhero.javascript.1.0.5.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/exceptionhero.javascript.1.0.5.nupkg -------------------------------------------------------------------------------- /tests/data/extract/TODO/macosx-dot-files-ticket_1176.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/macosx-dot-files-ticket_1176.tar.gz -------------------------------------------------------------------------------- /tests/data/vmimage/bios-tables-test.x86_64.iso.qcow2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/vmimage/bios-tables-test.x86_64.iso.qcow2.tar.gz -------------------------------------------------------------------------------- /tests/data/archive/TODO/shar/origin.README: -------------------------------------------------------------------------------- 1 | download_url: http://ftp.gnu.org/gnu/tar/tar-1.11.8.shar.gz 2 | download_url: http://cd.textfiles.com/carousel344/MACTOSH/UNIX/SRCS2XBI.SHA 3 | -------------------------------------------------------------------------------- /tests/data/cli/unicodearch/Korištenjem Kärkkäinen – Sanders.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/cli/unicodearch/Korištenjem Kärkkäinen – Sanders.tgz -------------------------------------------------------------------------------- /tests/data/extract/TODO/links/prune_broken_simlink_2570.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/links/prune_broken_simlink_2570.tar.gz -------------------------------------------------------------------------------- /tests/data/extract/TODO/xz_lzma/texlive-core-patches-20.tar.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/xz_lzma/texlive-core-patches-20.tar.xz -------------------------------------------------------------------------------- /etc/scripts/requirements.txt: -------------------------------------------------------------------------------- 1 | aboutcode_toolkit 2 | attrs 3 | commoncode 4 | click 5 | requests 6 | saneyaml 7 | pip 8 | setuptools 9 | twine 10 | wheel 11 | build 12 | packvers 13 | -------------------------------------------------------------------------------- /tests/data/archive/lzma_xz/binutils-2.22.52.0.3-patches-1.0.tar.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/lzma_xz/binutils-2.22.52.0.3-patches-1.0.tar.xz -------------------------------------------------------------------------------- /tests/data/archive/tbz/bzip2_multistream/example-file.csv.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/tbz/bzip2_multistream/example-file.csv.tar.bz2 -------------------------------------------------------------------------------- /tests/data/archive/zip/javascript-fastclass.1.1.729.121805.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/zip/javascript-fastclass.1.1.729.121805.nupkg -------------------------------------------------------------------------------- /tests/data/extract/TODO/xz_lzma/coreutils-8.5-patches-1.tar.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/xz_lzma/coreutils-8.5-patches-1.tar.lzma -------------------------------------------------------------------------------- /tests/data/extract/TODO/links/skinenigmang-logos-xpm-hi-20070214.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/links/skinenigmang-logos-xpm-hi-20070214.tgz -------------------------------------------------------------------------------- /tests/data/extract/TODO/org-jvnet-glassfish-comms-sipagent_1530.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/org-jvnet-glassfish-comms-sipagent_1530.jar -------------------------------------------------------------------------------- /tests/data/archive/TODO/dmg/ABOUT: -------------------------------------------------------------------------------- 1 | date-retrieved:2014-11-16 11:45:10+01:00 2 | wget:http://iweb.dl.sourceforge.net/project/easyeclipse/EasyEclipse%201.3%20plugins/1.3.0/easy-subclipse-mylyn-2.0.0.dmg 3 | -------------------------------------------------------------------------------- /tests/data/archive/rpm/kmod-openafs-1.6.10-2.2.6.18_8.1.1.el5.i686.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rpm/kmod-openafs-1.6.10-2.2.6.18_8.1.1.el5.i686.rpm -------------------------------------------------------------------------------- /tests/data/extract/TODO/rpm/libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/rpm/libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm -------------------------------------------------------------------------------- /tests/data/extract/TODO/unicode/skinenigmang-logos-xpm-hi-20070214.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/unicode/skinenigmang-logos-xpm-hi-20070214.tgz -------------------------------------------------------------------------------- /tests/data/archive/xar/origin.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: xar-1.4.xar 2 | name: xar test archive 3 | download_url: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/xar/xar-1.4.xar 4 | -------------------------------------------------------------------------------- /tests/data/archive/TODO/rpmticket_6327/jabber-roster-0.1.1-2.fc17.noarch.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/rpmticket_6327/jabber-roster-0.1.1-2.fc17.noarch.rpm -------------------------------------------------------------------------------- /tests/data/archive/TODO/rpmticket_6327/jack_capture-0.9.61-1.fc17.i686.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/rpmticket_6327/jack_capture-0.9.61-1.fc17.i686.rpm -------------------------------------------------------------------------------- /tests/data/archive/xar/xar-1.4.xar.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: xar-1.4.xar 2 | name: xar test archive 3 | download_url: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/xar/xar-1.4.xar 4 | -------------------------------------------------------------------------------- /tests/data/extract/TODO/office_docs/OpenSourceForBusinessSeminarOutline.sxi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/TODO/office_docs/OpenSourceForBusinessSeminarOutline.sxi -------------------------------------------------------------------------------- /tests/data/archive/rpm/extract_once/libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/rpm/extract_once/libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm -------------------------------------------------------------------------------- /tests/data/extract/nested_not_compressed/nested_with_not_compressed_gz_file.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/extract/nested_not_compressed/nested_with_not_compressed_gz_file.tgz -------------------------------------------------------------------------------- /tests/data/archive/TODO/rpmticket_6327/gettext-runtime-32bit-0.17-61.40.x86_64.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/TODO/rpmticket_6327/gettext-runtime-32bit-0.17-61.40.x86_64.rpm -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/i2c_nostop_for_bitbanging.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/patch/patches/misc/linux-st710x/patches/i2c_nostop_for_bitbanging.patch -------------------------------------------------------------------------------- /tests/data/archive/bz2/bzip2_with_gentoo_trailing_data/sys-libs%3Azlib-1.2.3-r1~1.tbz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/archive/bz2/bzip2_with_gentoo_trailing_data/sys-libs%3Azlib-1.2.3-r1~1.tbz2 -------------------------------------------------------------------------------- /tests/data/archive/tar/testtar.README: -------------------------------------------------------------------------------- 1 | This test file is borrowed from Python codebase and test suite. 2 | This is a trick Tar with several weird and malformed entries: 3 | https://hg.python.org/cpython/file/bff88c866886/Lib/test/testtar.tar -------------------------------------------------------------------------------- /tests/data/vmimage/bios-tables-test.x86_64.iso.qcow2.tar.gz.ABOUT: -------------------------------------------------------------------------------- 1 | date: 2021-04-08 2 | download_url: https://github.com/jc-lab/pve-mirror_qemu/blob/51db2d7cf26d05a961ec0ee0eb773594b32cc4a1/tests/data/uefi-boot-images/bios-tables-test.x86_64.iso.qcow2?raw=true 3 | -------------------------------------------------------------------------------- /tests/data/archive/docs/origin.README: -------------------------------------------------------------------------------- 1 | date: 2015-01-01 2 | download_url: http://www.coredumps.de/doc/dump/zwicky/testdump.doc.html 3 | download_url: http://www.coredumps.de/doc/dump/zwicky/how-to-torture 4 | download_url: http://www.coredumps.de/doc/dump/zwicky/torture.perl 5 | -------------------------------------------------------------------------------- /tests/data/archive/deb/origin.README: -------------------------------------------------------------------------------- 1 | date: 2015-01-21 2 | download_url: http://ftp.osuosl.org/pub/ubuntu/pool/main/a/adduser/adduser_3.112ubuntu1_all.deb 3 | date: 2015-01-21 4 | download_url: http://ftp.osuosl.org/pub/ubuntu/pool/main/a/adduser/adduser_3.113+nmu3ubuntu3_all.deb 5 | -------------------------------------------------------------------------------- /tests/data/archive/bz2/bzip2_with_gentoo_trailing_data/sys-libs%3Azlib-1.2.3-r1~1.tbz2.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: sys-libs%3Azlib-1.2.3-r1~1.tbz2 2 | name: a test archive from Gentoo 3 | download_url: http://bugs.python.org/file32904/sys-libs%3Azlib-1.2.3-r1%7E1.tbz2 4 | notes: See also http://bugs.python.org/issue19839 5 | -------------------------------------------------------------------------------- /tests/data/archive/zipslip/zip-slip.tar.ABOUT: -------------------------------------------------------------------------------- 1 | name: zip-slip test archives 2 | about_resource: zip-slip.tar 3 | date: 2018-06-06 4 | download_url: https://github.com/snyk/zip-slip-vulnerability/archive/b8f81ac4aa4573b744f3ad7c405a110fa9f8c9ec.zip 5 | notes: these test data files are for testing path traversal vulnerabilities -------------------------------------------------------------------------------- /tests/data/archive/zipslip/zip-slip.zip.ABOUT: -------------------------------------------------------------------------------- 1 | name: zip-slip test archives 2 | about_resource: zip-slip.zip 3 | date: 2018-06-06 4 | download_url: https://github.com/snyk/zip-slip-vulnerability/archive/b8f81ac4aa4573b744f3ad7c405a110fa9f8c9ec.zip 5 | notes: these test data files are for testing path traversal vulnerabilities -------------------------------------------------------------------------------- /tests/data/extract/zipslip/zip-slip.tar.ABOUT: -------------------------------------------------------------------------------- 1 | name: zip-slip test archives 2 | about_resource: zip-slip.tar 3 | date: 2018-06-06 4 | download_url: https://github.com/snyk/zip-slip-vulnerability/archive/b8f81ac4aa4573b744f3ad7c405a110fa9f8c9ec.zip 5 | notes: these test data files are for testing path traversal vulnerabilities -------------------------------------------------------------------------------- /tests/data/extract/zipslip/zip-slip.zip.ABOUT: -------------------------------------------------------------------------------- 1 | name: zip-slip test archives 2 | about_resource: zip-slip.zip 3 | date: 2018-06-06 4 | download_url: https://github.com/snyk/zip-slip-vulnerability/archive/b8f81ac4aa4573b744f3ad7c405a110fa9f8c9ec.zip 5 | notes: these test data files are for testing path traversal vulnerabilities -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | graft src 2 | 3 | include *.LICENSE 4 | include NOTICE 5 | include *.ABOUT 6 | include *.toml 7 | include *.yml 8 | include *.rst 9 | include setup.* 10 | include configure* 11 | include requirements* 12 | include .giti* 13 | 14 | include extractcode* 15 | 16 | global-exclude *.py[co] __pycache__ *.*~ 17 | 18 | -------------------------------------------------------------------------------- /tests/data/archive/zipslip/zip-slip-win.tar.ABOUT: -------------------------------------------------------------------------------- 1 | name: zip-slip test archives 2 | about_resource: zip-slip-win.tar 3 | date: 2018-06-06 4 | download_url: https://github.com/snyk/zip-slip-vulnerability/archive/b8f81ac4aa4573b744f3ad7c405a110fa9f8c9ec.zip 5 | notes: these test data files are for testing path traversal vulnerabilities -------------------------------------------------------------------------------- /tests/data/archive/zipslip/zip-slip-win.zip.ABOUT: -------------------------------------------------------------------------------- 1 | name: zip-slip test archives 2 | about_resource: zip-slip-win.zip 3 | date: 2018-06-06 4 | download_url: https://github.com/snyk/zip-slip-vulnerability/archive/b8f81ac4aa4573b744f3ad7c405a110fa9f8c9ec.zip 5 | notes: these test data files are for testing path traversal vulnerabilities -------------------------------------------------------------------------------- /tests/data/extract/zipslip/zip-slip-win.tar.ABOUT: -------------------------------------------------------------------------------- 1 | name: zip-slip test archives 2 | about_resource: zip-slip-win.tar 3 | date: 2018-06-06 4 | download_url: https://github.com/snyk/zip-slip-vulnerability/archive/b8f81ac4aa4573b744f3ad7c405a110fa9f8c9ec.zip 5 | notes: these test data files are for testing path traversal vulnerabilities -------------------------------------------------------------------------------- /tests/data/extract/zipslip/zip-slip-win.zip.ABOUT: -------------------------------------------------------------------------------- 1 | name: zip-slip test archives 2 | about_resource: zip-slip-win.zip 3 | date: 2018-06-06 4 | download_url: https://github.com/snyk/zip-slip-vulnerability/archive/b8f81ac4aa4573b744f3ad7c405a110fa9f8c9ec.zip 5 | notes: these test data files are for testing path traversal vulnerabilities -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libasyncns/configure.patch: -------------------------------------------------------------------------------- 1 | --- configure.orign 2009-07-13 13:45:52.000000000 +0800 2 | +++ configure 2009-07-13 13:46:34.000000000 +0800 3 | @@ -22355,7 +22355,7 @@ 4 | 5 | 6 | cat >>confdefs.h <<\_ACEOF 7 | -#define malloc rpl_malloc 8 | +//#define malloc rpl_malloc 9 | _ACEOF 10 | 11 | fi 12 | -------------------------------------------------------------------------------- /docs/source/index.rst: -------------------------------------------------------------------------------- 1 | Welcome to nexb-skeleton's documentation! 2 | ========================================= 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | :caption: Contents: 7 | 8 | contribute/contrib_doc 9 | 10 | Indices and tables 11 | ================== 12 | 13 | * :ref:`genindex` 14 | * :ref:`modindex` 15 | * :ref:`search` 16 | -------------------------------------------------------------------------------- /etc/ci/install_sudo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | 5 | if [[ "$1" == "apt-get" ]]; then 6 | apt-get update -y 7 | apt-get -o DPkg::Options::="--force-confold" install -y sudo 8 | 9 | elif [[ "$1" == "yum" ]]; then 10 | yum install -y sudo 11 | 12 | elif [[ "$1" == "dnf" ]]; then 13 | dnf install -y sudo 14 | 15 | fi 16 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/kernel_extable.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/kernel/extable.c~ 2007-10-09 22:31:38.000000000 +0200 2 | +++ linux-2.6.23/kernel/extable.c 2008-12-13 15:43:36.000000000 +0100 3 | @@ -65,3 +65,4 @@ 4 | return 1; 5 | return module_text_address(addr) != NULL; 6 | } 7 | +EXPORT_SYMBOL(kernel_text_address); 8 | -------------------------------------------------------------------------------- /tests/data/patch/not_patches/opensource/series: -------------------------------------------------------------------------------- 1 | moto-timer.patch 2 | moto-dump.patch 3 | webcore_accept_click.patch 4 | moto-jsvalue-equal.patch 5 | moto-createobject-null-check.patch 6 | webcore_videoplane.patch 7 | 8 | # Support -jX make flag when generating code from IDL files. 9 | support_parallel_idl_gen.patch 10 | moto-getopensourcenotice.patch 11 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) nexB Inc. and others. All rights reserved. 3 | # ScanCode is a trademark of nexB Inc. 4 | # SPDX-License-Identifier: Apache-2.0 5 | # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. 6 | # See https://github.com/nexB/extractcode for support or download. 7 | # See https://aboutcode.org for more information about nexB OSS projects. 8 | # 9 | -------------------------------------------------------------------------------- /tests/data/archive/bz2/bzip2_multistream/example-file.csv.bz2.ABOUT: -------------------------------------------------------------------------------- 1 | name: test Bzip2 multistream archive 2 | about_resource: example-file.csv.bz2 3 | download_url: http://bugs.python.org/file34230/example-file.csv.bz2 4 | notes: See also 5 | http://bugs.python.org/issue20781 6 | https://pypi.python.org/packages/source/b/bz2file/bz2file-0.98.tar.gz#md5=27d6f711ae0db6cfd1eb37f95621dfb5 7 | -------------------------------------------------------------------------------- /tests/data/cli/extract_nuget/00000xxxxx-00000xxxx-00000xxxx-00000xxxx/00000xxxxx-00000xxxx-00000xxxx-00000xxxx/microsoft.aspnet.identity.entityframework.2.2.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/extractcode/HEAD/tests/data/cli/extract_nuget/00000xxxxx-00000xxxx-00000xxxx-00000xxxx/00000xxxxx-00000xxxx-00000xxxx-00000xxxx/microsoft.aspnet.identity.entityframework.2.2.1.nupkg -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/demo-spring-boot.sh.listing-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "path":"demo-spring-boot", 4 | "size":"2", 5 | "date":"", 6 | "is_file":true, 7 | "is_dir":false, 8 | "is_special":false, 9 | "is_hardlink":false, 10 | "is_symlink":false, 11 | "is_broken_link":false, 12 | "link_target":null, 13 | "errors":[] 14 | } 15 | ] -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/insert-emptyframe.svgz.listing-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "path":"insert-emptyframe", 4 | "size":"13061", 5 | "date":"", 6 | "is_file":true, 7 | "is_dir":false, 8 | "is_special":false, 9 | "is_hardlink":false, 10 | "is_symlink":false, 11 | "is_broken_link":false, 12 | "link_target":null, 13 | "errors":[] 14 | } 15 | ] -------------------------------------------------------------------------------- /src/extractcode/NOTICE: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) nexB Inc. and others. All rights reserved. 3 | # ScanCode is a trademark of nexB Inc. 4 | # SPDX-License-Identifier: Apache-2.0 5 | # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. 6 | # See https://github.com/nexB/extractcode for support or download. 7 | # See https://aboutcode.org for more information about nexB OSS projects. 8 | # 9 | -------------------------------------------------------------------------------- /tests/data/archive/tbz/bzip2_multistream/example-file.csv.tar.bz2.ABOUT: -------------------------------------------------------------------------------- 1 | name: bzip2 test archive from Python.org 2 | about_resource: example-file.csv.tar.bz2 3 | download_url: http://bugs.python.org/file34230/example-file.csv.bz2 4 | notes: See also 5 | http://bugs.python.org/issue20781 6 | https://pypi.python.org/packages/source/b/bz2file/bz2file-0.98.tar.gz#md5=27d6f711ae0db6cfd1eb37f95621dfb5 7 | -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/adduser_3.113+nmu3ubuntu3_all.deb-linux.listing-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "path":"data.tar", 4 | "size":"337920", 5 | "date":"", 6 | "is_file":true, 7 | "is_dir":false, 8 | "is_special":false, 9 | "is_hardlink":false, 10 | "is_symlink":false, 11 | "is_broken_link":false, 12 | "link_target":null, 13 | "errors":[] 14 | } 15 | ] -------------------------------------------------------------------------------- /etc/scripts/gen_pypi_simple.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: gen_pypi_simple.py 2 | name: gen_pypi_simple.py 3 | license_expression: bsd-2-clause-views and mit 4 | copyright: Copyright (c) nexB Inc. 5 | Copyright (c) 2010 David Wolever 6 | Copyright (c) The pip developers 7 | notes: Originally from https://github.com/wolever/pip2pi and modified extensivley 8 | Also partially derived from pip code 9 | -------------------------------------------------------------------------------- /tests/data/extract/TODO/msvc-files/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | // TODO: reference additional headers your program requires here 14 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/bugs.h.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23-orig/include/asm-sh/bugs.h 2009-05-18 13:59:03.000000000 +0200 2 | +++ linux-2.6.23/include/asm-sh/bugs.h 2009-05-19 12:47:35.000000000 +0200 3 | @@ -54,7 +54,6 @@ 4 | break; 5 | } 6 | 7 | - printk("CPU: %s\n", get_cpu_subtype(¤t_cpu_data)); 8 | 9 | #ifndef __LITTLE_ENDIAN__ 10 | /* 'eb' means 'Endian Big' */ 11 | -------------------------------------------------------------------------------- /tests/data/patch/patches/ElectricFence-2.1-vaarg.patch: -------------------------------------------------------------------------------- 1 | --- ElectricFence-2.1/print.c.jj Thu Jan 19 23:54:26 1995 2 | +++ ElectricFence-2.1/print.c Tue May 16 07:43:45 2000 3 | @@ -99,7 +99,7 @@ vprint(const char * pattern, va_list arg 4 | break; 5 | case 'c': 6 | { 7 | - char c = va_arg(args, char); 8 | + char c = va_arg(args, int); 9 | 10 | (void) write(2, &c, 1); 11 | } 12 | -------------------------------------------------------------------------------- /tests/data/sevenzip/special.tar-extract-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | "/0-REGTYPE", 3 | "/0-REGTYPE-TEXT", 4 | "/0-REGTYPE-VEEEERY_LONG_NAME_____________________________________________________________________________________________________________________155", 5 | "/1-LNKTYPE", 6 | "/2-SYMTYPE", 7 | "/3-CHRTYPE", 8 | "/5-DIRTYPE/", 9 | "/6-FIFOTYPE", 10 | "/S-SPARSE", 11 | "/S-SPARSE-WITH-NULLS" 12 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/xvidcap-1.1.6-docdir.patch: -------------------------------------------------------------------------------- 1 | --- xvidcap-1.1.6/Makefile.in.orig 2007-11-18 20:01:15.000000000 +0100 2 | +++ xvidcap-1.1.6/Makefile.in 2007-11-18 20:01:24.000000000 +0100 3 | @@ -270,7 +270,7 @@ 4 | xvidcap.png \ 5 | ppm2mpeg.sh 6 | 7 | -xvidcapdocdir = ${datadir}/doc/xvidcap 8 | +xvidcapdocdir = ${datadir}/doc/packages/xvidcap 9 | xvidcapdoc_DATA = \ 10 | README\ 11 | COPYING\ 12 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libiconv/patches/make.patch: -------------------------------------------------------------------------------- 1 | --- libiconv-1.11.orig/Makefile.in 2006-07-14 22:14:17.000000000 +0900 2 | +++ libiconv-1.11/Makefile.in 2008-11-21 16:09:09.000000000 +0900 3 | @@ -29,6 +29,9 @@ 4 | 5 | SHELL = /bin/sh 6 | 7 | +libiconv.so : lib/localcharset.h force 8 | + cd lib && $(MAKE) all 9 | + 10 | all : lib/localcharset.h force 11 | cd lib && $(MAKE) all 12 | cd srclib && $(MAKE) all 13 | -------------------------------------------------------------------------------- /tests/data/sevenzip/special.tar-extract-expected-win.json: -------------------------------------------------------------------------------- 1 | [ 2 | "/0-REGTYPE", 3 | "/0-REGTYPE-TEXT", 4 | "/0-REGTYPE-VEEEERY_LONG_NAME_____________________________________________________________________________________________________________________155", 5 | "/1-LNKTYPE", 6 | "/2-SYMTYPE", 7 | "/3-CHRTYPE", 8 | "/5-DIRTYPE/", 9 | "/6-FIFOTYPE", 10 | "/S-SPARSE", 11 | "/S-SPARSE-WITH-NULLS" 12 | ] -------------------------------------------------------------------------------- /AUTHORS.rst: -------------------------------------------------------------------------------- 1 | The following organizations or individuals have contributed to this repo: 2 | 3 | - Abhishek Kumar @Abhishek-Dev09 4 | - AlexB @a-tinsmith 5 | - Konrad Weihmann @priv-kweihmann 6 | - Maximilian Huber @maxhbr 7 | - Michael Rupprecht @michaelrup 8 | - Philippe Ombredanne @pombredanne 9 | - Pierre Tardy @tardyp 10 | - Qingmin Duanmu @qduanmu 11 | - Rakesh Balusa @balusarakesh 12 | - Ravi Jain @JRavi2 13 | - Steven Esser @majurg -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libxml2/patches/iconv.patch: -------------------------------------------------------------------------------- 1 | --- libxml2-2.6.31/include/libxml/encoding.h.orig 2008-12-08 14:24:35.000000000 +0900 2 | +++ libxml2-2.6.31/include/libxml/encoding.h 2008-12-08 14:24:47.000000000 +0900 3 | @@ -25,7 +25,7 @@ 4 | #include 5 | 6 | #ifdef LIBXML_ICONV_ENABLED 7 | -#include 8 | +#include "libiconv/iconv.h" 9 | #endif 10 | #ifdef __cplusplus 11 | extern "C" { 12 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/soc.h.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/include/linux/stm/soc.h.orig 2009-09-08 14:26:48.000000000 +0200 2 | +++ linux-2.6.23/include/linux/stm/soc.h 2009-09-08 14:26:54.000000000 +0200 3 | @@ -420,6 +420,7 @@ 4 | }; 5 | 6 | #define STASC_FLAG_NORTSCTS 1 7 | +#define STASC_FLAG_NORXTX 2 8 | 9 | extern int stasc_console_device; 10 | extern struct platform_device *stasc_configured_devices[]; 11 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/devinet.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/net/ipv4/devinet.c~ 2008-07-16 16:07:42.000000000 +0200 2 | +++ linux-2.6.23/net/ipv4/devinet.c 2008-07-16 17:25:47.000000000 +0200 3 | @@ -761,6 +761,7 @@ 4 | inet_del_ifa(in_dev, ifap, 0); 5 | ifa->ifa_broadcast = 0; 6 | ifa->ifa_anycast = 0; 7 | + ifa->ifa_scope = 0; 8 | } 9 | 10 | ifa->ifa_address = ifa->ifa_local = sin->sin_addr.s_addr; 11 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/squashfs3.3_revert.patch: -------------------------------------------------------------------------------- 1 | Index: linux-2.6.23/fs/squashfs/Makefile 2 | =================================================================== 3 | --- linux-2.6.23.orig/fs/squashfs/Makefile 4 | +++ /dev/null 5 | @@ -1,7 +0,0 @@ 6 | -# 7 | -# Makefile for the linux squashfs routines. 8 | -# 9 | - 10 | -obj-$(CONFIG_SQUASHFS) += squashfs.o 11 | -squashfs-y += inode.o 12 | -squashfs-y += squashfs2_0.o 13 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/smsc_makefile.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/drivers/net/smsc_911x/Makefile.orig 2009-09-14 10:09:19.000000000 +0200 2 | +++ linux-2.6.23/drivers/net/smsc_911x/Makefile 2009-09-14 10:09:23.000000000 +0200 3 | @@ -3,5 +3,4 @@ 4 | pf-$(CONFIG_CPU_SUBTYPE_ST40) := st40.c 5 | pf-$(CONFIG_CPU_XSCALE) := xscale_linux_2.4.c 6 | 7 | -CFLAGS_smsc9118.o += -DUSE_DEBUG 8 | CFLAGS_smsc9118.o += -DPLATFORM_SOURCE=\"$(pf-y)\" 9 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/vqec/patch/BUILD.patch: -------------------------------------------------------------------------------- 1 | --- eva/BUILD.orig 2009-07-15 13:59:02.000000000 +0800 2 | +++ eva/BUILD 2009-07-15 14:00:46.000000000 +0800 3 | @@ -32,6 +32,7 @@ 4 | $(SRCDIR)/vqec_upcall_event.c \ 5 | $(SRCDIR)/vqec_nat_natproto.c \ 6 | $(SRCDIR)/vqec_cli_interface.c \ 7 | + $(SRCDIR)/vqec_wv.c \ 8 | 9 | ifeq ($(HAVE_FCC), 1) 10 | VQEC_SRC += $(SRCDIR)/vqec_ifclient_fcc.c 11 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/localversion.patch: -------------------------------------------------------------------------------- 1 | diff -u -p /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/localversion-stm\~ /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/localversion-stm 2 | --- linux-2.6.23/localversion-stm~ 2009-04-07 08:01:25.000000000 +0200 3 | +++ linux-2.6.23/localversion-stm 2009-06-09 14:31:03.000000000 +0200 4 | @@ -1 +1 @@ 5 | -_stm23_A18B 6 | +_stm23_0121 7 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/netconsole.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23-orig/drivers/net/netconsole.c 2009-05-18 13:58:47.000000000 +0200 2 | +++ linux-2.6.23/drivers/net/netconsole.c 2009-05-18 16:27:28.000000000 +0200 3 | @@ -166,7 +166,7 @@ 4 | option_setup(config); 5 | 6 | if(!configured) { 7 | - printk("netconsole: not configured, aborting\n"); 8 | + printk(KERN_NOTICE "netconsole: not configured\n"); 9 | return 0; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libasyncns/configure.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "configure.orign", 4 | "configure", 5 | [ 6 | "--- configure.orign", 7 | "+++ configure", 8 | "@@ -22355,7 +22355,7 @@", 9 | "", 10 | "", 11 | "cat >>confdefs.h <<\\_ACEOF", 12 | "-#define malloc rpl_malloc", 13 | "+//#define malloc rpl_malloc", 14 | "_ACEOF", 15 | "", 16 | "fi" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/arch_sh_kernel_cpu_init.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/arch/sh/kernel/cpu/init.c.orig 2008-10-22 16:08:08.000000000 +0200 2 | +++ linux-2.6.23/arch/sh/kernel/cpu/init.c 2008-10-19 11:12:39.000000000 +0200 3 | @@ -229,6 +229,9 @@ 4 | panic("Unknown CPU"); 5 | 6 | #ifdef CONFIG_32BIT 7 | +#ifndef CONFIG_CPU_SUBTYPE_STX7105 8 | + if ((ctrl_inl(MMUCR)&MMUCR_SE)==MMUCR_SE) 9 | +#endif 10 | pmb_init(); 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/kernel_extable.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/kernel/extable.c~", 4 | "linux-2.6.23/kernel/extable.c", 5 | [ 6 | "--- linux-2.6.23/kernel/extable.c~", 7 | "+++ linux-2.6.23/kernel/extable.c", 8 | "@@ -65,3 +65,4 @@", 9 | "return 1;", 10 | "return module_text_address(addr) != NULL;", 11 | "}", 12 | "+EXPORT_SYMBOL(kernel_text_address);" 13 | ] 14 | ] 15 | ] -------------------------------------------------------------------------------- /tests/data/extract/TODO/msvc-files/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by abc.rc 4 | 5 | // Next default values for new objects 6 | // 7 | #ifdef APSTUDIO_INVOKED 8 | #ifndef APSTUDIO_READONLY_SYMBOLS 9 | #define _APS_NEXT_RESOURCE_VALUE 101 10 | #define _APS_NEXT_COMMAND_VALUE 40001 11 | #define _APS_NEXT_CONTROL_VALUE 1001 12 | #define _APS_NEXT_SYMED_VALUE 101 13 | #endif 14 | #endif 15 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/busybox/patches/fix-subarch.patch: -------------------------------------------------------------------------------- 1 | --- busybox-1.13.3/Makefile.orig 2009-11-30 10:39:09.000000000 +0100 2 | +++ busybox-1.13.3/Makefile 2009-11-30 10:41:14.000000000 +0100 3 | @@ -177,7 +177,7 @@ 4 | # SUBARCH is subsequently ignored. 5 | 6 | ifneq ($(CROSS_COMPILE),) 7 | -SUBARCH := $(shell echo $(CROSS_COMPILE) | cut -d- -f1) 8 | +SUBARCH := $(shell echo $(CROSS_COMPILE) | awk -F/ '{print $NF}' | cut -d- -f1) 9 | else 10 | SUBARCH := $(shell uname -m) 11 | endif 12 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/cfi_util.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23-orig/drivers/mtd/chips/cfi_util.c 2009-05-18 16:32:46.000000000 +0200 2 | +++ linux-2.6.23/drivers/mtd/chips/cfi_util.c 2009-05-18 16:33:16.000000000 +0200 3 | @@ -36,7 +36,7 @@ 4 | int i; 5 | struct cfi_extquery *extp = NULL; 6 | 7 | - printk(" %s Extended Query Table at 0x%4.4X\n", name, adr); 8 | + printk(KERN_DEBUG " %s Extended Query Table at 0x%4.4X\n", name, adr); 9 | if (!adr) 10 | goto out; 11 | 12 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libjpeg-v6b/patches/configure.patch: -------------------------------------------------------------------------------- 1 | --- jpeg-6b/configure Tue Dec 10 13:51:03 2002 2 | +++ jpeg-6b/configure.cross Tue Dec 10 13:51:23 2002 3 | @@ -1559,7 +1559,7 @@ 4 | if test "x$LTSTATIC" = xno; then 5 | disable_static="--disable-static" 6 | fi 7 | - $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh 8 | + $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh $host 9 | fi 10 | 11 | # Select memory manager depending on user input. 12 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libjpeg-v6b/patches/makefile.cfg.patch: -------------------------------------------------------------------------------- 1 | --- jpeg-6b.orig/makefile.cfg 1998-03-21 20:08:57.000000000 +0100 2 | +++ jpeg-6b/makefile.cfg 2007-09-18 16:34:06.000000000 +0200 3 | @@ -168,7 +168,7 @@ 4 | 5 | # with libtool: 6 | libjpeg.la: @A2K_DEPS@ $(LIBOBJECTS) 7 | - $(LIBTOOL) --mode=link $(CC) -o libjpeg.la $(LIBOBJECTS) \ 8 | + $(LIBTOOL) --mode=link "$(CC)" -o libjpeg.la $(LIBOBJECTS) \ 9 | -rpath $(libdir) -version-info $(JPEG_LIB_VERSION) 10 | 11 | # sample programs: 12 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/delayed_i2c_read.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/drivers/i2c/busses/i2c-stm.c.org 2009-11-30 12:01:41.000000000 +0100 2 | +++ linux-2.6.23/drivers/i2c/busses/i2c-stm.c 2009-11-30 12:02:13.000000000 +0100 3 | @@ -453,6 +453,7 @@ 4 | 5 | case IIC_FSM_DATA_READ: 6 | dbg_print2("-Read\n"); 7 | + udelay(10); 8 | /* Clear the RX buffer */ 9 | idx = (ssc_load32(adap, SSC_RX_FSTAT) & SSC_RX_FSTAT_STATUS); 10 | if (!idx && (ssc_load32(adap, SSC_STA) & SSC_STA_RIR)) 11 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/if_ppp.h.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/include/linux/if_ppp.h.orig 2008-12-11 17:16:25.000000000 +0100 2 | +++ linux-2.6.23/include/linux/if_ppp.h 2008-12-11 17:27:43.000000000 +0100 3 | @@ -110,6 +110,10 @@ 4 | struct ppp_comp_stats stats; 5 | }; 6 | 7 | +#ifndef aligned_u64 8 | +#define aligned_u64 unsigned long long __attribute__((aligned(8))) 9 | +#endif 10 | + 11 | /* For PPPIOCGL2TPSTATS */ 12 | struct pppol2tp_ioc_stats { 13 | __u16 tunnel_id; /* redundant */ 14 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/mmu_context.h.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/include/asm-sh/mmu_context.h.orig 2008-10-22 16:08:03.000000000 +0200 2 | +++ linux-2.6.23/include/asm-sh/mmu_context.h 2008-10-22 15:04:40.000000000 +0200 3 | @@ -191,7 +191,9 @@ 4 | 5 | /* Enable MMU */ 6 | #ifdef CONFIG_32BIT 7 | - if (1) /* SH4-202 and SE */ 8 | +#ifndef CONFIG_CPU_SUBTYPE_STX7105 9 | + if ((ctrl_inl(MMUCR)&MMUCR_SE)==MMUCR_SE) /* SH4-202 and SE */ 10 | +#endif 11 | mmucr_init |= MMUCR_SE; 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libpng-1.2.8/pngrutil.c.patch: -------------------------------------------------------------------------------- 1 | --- pngrutil.c.orig 2009-08-19 11:01:06.000000000 +0200 2 | +++ pngrutil.c 2009-08-19 11:01:17.000000000 +0200 3 | @@ -422,8 +422,8 @@ 4 | png_crc_finish(png_ptr, length); 5 | return; 6 | } 7 | - else if (png_ptr->mode & PNG_HAVE_PLTE) 8 | - png_error(png_ptr, "Duplicate PLTE chunk"); 9 | + //else if (png_ptr->mode & PNG_HAVE_PLTE) 10 | + // png_error(png_ptr, "Duplicate PLTE chunk"); 11 | 12 | png_ptr->mode |= PNG_HAVE_PLTE; 13 | 14 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/namespace.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23-orig/fs/namespace.c 2009-05-18 13:59:13.000000000 +0200 2 | +++ linux-2.6.23/fs/namespace.c 2009-05-19 12:40:17.000000000 +0200 3 | @@ -1827,7 +1827,7 @@ 4 | nr_hash = 1UL << hash_bits; 5 | hash_mask = nr_hash - 1; 6 | 7 | - printk("Mount-cache hash table entries: %d\n", nr_hash); 8 | + printk(KERN_DEBUG "Mount-cache hash table entries: %d\n", nr_hash); 9 | 10 | /* And initialize the newly allocated array */ 11 | d = mount_hashtable; 12 | -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/single_file.z.mac: -------------------------------------------------------------------------------- 1 | 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 2 | p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64) 3 | 4 | Scanning the drive for archives: 5 | 1 file, 45963 bytes (45 KiB) 6 | 7 | Listing archive: /Users/runner/runners/2.170.1/work/1/s/tests/extractcode/data/archive/Z/tr2tex.Z 8 | 9 | -- 10 | Path = /Users/runner/runners/2.170.1/work/1/s/tests/extractcode/data/archive/Z/tr2tex.Z 11 | Type = Z 12 | 13 | ---------- 14 | Packed Size = 45963 15 | -------------------------------------------------------------------------------- /tests/data/patch/patches/xvidcap-xorg.patch: -------------------------------------------------------------------------------- 1 | diff -Nur xvidcap-1.1.7-orig/src/capture.c xvidcap-1.1.7/src/capture.c 2 | --- xvidcap-1.1.7-orig/src/capture.c 2010-07-02 09:10:00.236948817 +0200 3 | +++ xvidcap-1.1.7/src/capture.c 2010-07-02 09:14:21.418947354 +0200 4 | @@ -65,7 +65,7 @@ 5 | #include 6 | #include 7 | #include 8 | -#include 9 | +#include 10 | #ifndef SOLARIS 11 | #include 12 | #endif // SOLARIS 13 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/e2fsprogs-1.37/uuidlibs_blkidlibs_only_target_Makefile.in.patch: -------------------------------------------------------------------------------- 1 | --- Makefile.in.orig 2005-05-13 14:45:30.000000000 +0200 2 | +++ Makefile.in 2005-05-13 15:16:39.000000000 +0200 3 | @@ -88,6 +88,12 @@ 4 | fi ; \ 5 | done 6 | 7 | +uuid_libs: 8 | + (cd lib/uuid && $(MAKE) elfshared && $(MAKE) libuuid.so.1.2) 9 | + 10 | +blkid_libs: 11 | + (cd lib/blkid && $(MAKE) elfshared && $(MAKE) libblkid.so.1.0) 12 | + 13 | mostlyclean: mostlyclean-recursive mostlyclean-local 14 | 15 | clean: clean-recursive clean-local clean-doc 16 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/jfsutils/patches/largefile.patch: -------------------------------------------------------------------------------- 1 | Index: jfsutils-1.1.12/libfs/devices.c 2 | =================================================================== 3 | --- jfsutils-1.1.12.orig/libfs/devices.c 4 | +++ jfsutils-1.1.12/libfs/devices.c 5 | @@ -15,6 +15,9 @@ 6 | * along with this program; if not, write to the Free Software 7 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 8 | */ 9 | + 10 | +#define _LARGEFILE_SOURCE 11 | + 12 | #include 13 | #include 14 | #include 15 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/pid.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23-orig/kernel/pid.c 2009-05-18 13:59:09.000000000 +0200 2 | +++ linux-2.6.23/kernel/pid.c 2009-05-18 14:44:47.000000000 +0200 3 | @@ -394,7 +394,7 @@ 4 | pidhash_shift = min(12, pidhash_shift); 5 | pidhash_size = 1 << pidhash_shift; 6 | 7 | - printk("PID hash table entries: %d (order: %d, %Zd bytes)\n", 8 | + printk(KERN_DEBUG "PID hash table entries: %d (order: %d, %Zd bytes)\n", 9 | pidhash_size, pidhash_shift, 10 | pidhash_size * sizeof(struct hlist_head)); 11 | 12 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/sample.patch: -------------------------------------------------------------------------------- 1 | Index: linux-2.6.23/fs/Makefile 2 | =================================================================== 3 | --- linux-2.6.23.orig/fs/Makefile 4 | +++ linux-2.6.23/fs/Makefile 5 | @@ -72,7 +72,6 @@ obj-$(CONFIG_JBD) += jbd/ 6 | obj-$(CONFIG_JBD2) += jbd2/ 7 | obj-$(CONFIG_EXT2_FS) += ext2/ 8 | obj-$(CONFIG_CRAMFS) += cramfs/ 9 | -obj-$(CONFIG_SQUASHFS) += squashfs/ 10 | obj-$(CONFIG_RAMFS) += ramfs/ 11 | obj-$(CONFIG_HUGETLBFS) += hugetlbfs/ 12 | obj-$(CONFIG_CODA_FS) += coda/ -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/time.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23-orig/arch/sh/kernel/time.c 2009-05-18 13:59:25.000000000 +0200 2 | +++ linux-2.6.23/arch/sh/kernel/time.c 2009-05-18 14:51:20.000000000 +0200 3 | @@ -255,7 +255,7 @@ 4 | init_sh_clocksource(); 5 | 6 | if (sh_hpt_frequency) 7 | - printk("Using %lu.%03lu MHz high precision timer.\n", 8 | + printk(KERN_INFO "Using %lu.%03lu MHz high precision timer.\n", 9 | ((sh_hpt_frequency + 500) / 1000) / 1000, 10 | ((sh_hpt_frequency + 500) / 1000) % 1000); 11 | 12 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/vqec/patch/BUILD.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "eva/BUILD.orig", 4 | "eva/BUILD", 5 | [ 6 | "--- eva/BUILD.orig", 7 | "+++ eva/BUILD", 8 | "@@ -32,6 +32,7 @@", 9 | "$(SRCDIR)/vqec_upcall_event.c\t\\", 10 | "$(SRCDIR)/vqec_nat_natproto.c\t\t\\", 11 | "$(SRCDIR)/vqec_cli_interface.c \\", 12 | "+ $(SRCDIR)/vqec_wv.c \\", 13 | "", 14 | "ifeq ($(HAVE_FCC), 1)", 15 | "VQEC_SRC += $(SRCDIR)/vqec_ifclient_fcc.c" 16 | ] 17 | ] 18 | ] -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/single_file.tarz.mac: -------------------------------------------------------------------------------- 1 | 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 2 | p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64) 3 | 4 | Scanning the drive for archives: 5 | 1 file, 573683 bytes (561 KiB) 6 | 7 | Listing archive: /Users/runner/runners/2.170.1/work/1/s/tests/extractcode/data/archive/Z/tkWWW-0.11.tar.Z 8 | 9 | -- 10 | Path = /Users/runner/runners/2.170.1/work/1/s/tests/extractcode/data/archive/Z/tkWWW-0.11.tar.Z 11 | Type = Z 12 | 13 | ---------- 14 | Packed Size = 573683 15 | -------------------------------------------------------------------------------- /tests/data/archive/TODO/weird_tars/ABOUT.txt: -------------------------------------------------------------------------------- 1 | download_url: http://grapefruit.googlecode.com/files/grapefruit-0.1a3.tar.gz 2 | notes: grapefruit has no single top-level directory but multiple files 3 | 4 | download_url: https://pypi.python.org/packages/source/D/DeferArgs/deferargs-0.4.tar.gz 5 | notes: deferred has no directories and contains a single file 6 | 7 | download_url: https://pypi.python.org/packages/source/b/bitarray/bitarray-0.8.1.tar.gz 8 | notes:bitarray has permissions, users and groups that may prevent extraction 9 | 10 | notes: empty tar contains no file -------------------------------------------------------------------------------- /tests/data/patch/patches/xvidcap-1.1.6-docdir.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "xvidcap-1.1.6/Makefile.in.orig", 4 | "xvidcap-1.1.6/Makefile.in", 5 | [ 6 | "--- xvidcap-1.1.6/Makefile.in.orig", 7 | "+++ xvidcap-1.1.6/Makefile.in", 8 | "@@ -270,7 +270,7 @@", 9 | "xvidcap.png \\", 10 | "ppm2mpeg.sh", 11 | "", 12 | "-xvidcapdocdir = ${datadir}/doc/xvidcap", 13 | "+xvidcapdocdir = ${datadir}/doc/packages/xvidcap", 14 | "xvidcapdoc_DATA = \\", 15 | "README\\", 16 | "COPYING\\" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/bugs.h.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23-orig/include/asm-sh/bugs.h", 4 | "linux-2.6.23/include/asm-sh/bugs.h", 5 | [ 6 | "--- linux-2.6.23-orig/include/asm-sh/bugs.h", 7 | "+++ linux-2.6.23/include/asm-sh/bugs.h", 8 | "@@ -54,7 +54,6 @@", 9 | "break;", 10 | "}", 11 | "", 12 | "-\tprintk(\"CPU: %s\\n\", get_cpu_subtype(¤t_cpu_data));", 13 | "", 14 | "#ifndef __LITTLE_ENDIAN__", 15 | "/* 'eb' means 'Endian Big' */" 16 | ] 17 | ] 18 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/ksymhash_elflib.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/scripts/ksymhash/elflib.c~ 2009-02-11 10:50:37.000000000 +0100 2 | +++ linux-2.6.23/scripts/ksymhash/elflib.c 2009-02-11 11:23:33.000000000 +0100 3 | @@ -80,8 +80,8 @@ 4 | } 5 | 6 | /* Check if it is the vmlinux or lkm */ 7 | - lkm_suffix = strstr(filename, ".ko"); 8 | - if (lkm_suffix && (strlen(lkm_suffix) == 3)) 9 | + lkm_suffix = strncmp(filename + strlen(filename) - 3, ".ko", 3); 10 | + if (lkm_suffix == 0) 11 | /* Likely this is a lkm */ 12 | info->is_lkm = 1; 13 | else { 14 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/phy.h.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/include/linux/phy.h.orig 2009-02-04 16:33:03.000000000 +0100 2 | +++ linux-2.6.23/include/linux/phy.h 2009-01-20 08:45:48.000000000 +0100 3 | @@ -63,9 +63,10 @@ 4 | 5 | 6 | #define PHY_INIT_TIMEOUT 100000 7 | -#define PHY_STATE_TIME 1 8 | -#define PHY_FORCE_TIMEOUT 10 9 | -#define PHY_AN_TIMEOUT 10 10 | +#define PHY_INIT_TIME (HZ>>3) 11 | +#define PHY_STATE_TIME HZ 12 | +#define PHY_FORCE_TIMEOUT (10<<3) 13 | +#define PHY_AN_TIMEOUT (10<<3) 14 | 15 | #define PHY_MAX_ADDR 32 16 | 17 | -------------------------------------------------------------------------------- /tests/data/patch/patches/ElectricFence-2.1-vaarg.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "ElectricFence-2.1/print.c.jj", 4 | "ElectricFence-2.1/print.c", 5 | [ 6 | "--- ElectricFence-2.1/print.c.jj", 7 | "+++ ElectricFence-2.1/print.c", 8 | "@@ -99,7 +99,7 @@ vprint(const char * pattern, va_list arg", 9 | "break;", 10 | "case 'c':", 11 | "{", 12 | "-\t\t\t\t\tchar\tc = va_arg(args, char);", 13 | "+\t\t\t\t\tchar\tc = va_arg(args, int);", 14 | "", 15 | "(void) write(2, &c, 1);", 16 | "}" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /etc/scripts/utils_pip_compatibility_tags.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: utils_pip_compatibility_tags.py 2 | 3 | type: github 4 | namespace: pypa 5 | name: pip 6 | version: 20.3.1 7 | subpath: src/pip/_internal/utils/compatibility_tags.py 8 | 9 | package_url: pkg:github/pypa/pip@20.3.1#src/pip/_internal/utils/compatibility_tags.py 10 | 11 | download_url: https://github.com/pypa/pip/blob/20.3.1/src/pip/_internal/utils/compatibility_tags.py 12 | copyright: Copyright (c) 2008-2020 The pip developers (see AUTHORS.txt file) 13 | license_expression: mit 14 | notes: subset copied from pip for tag handling -------------------------------------------------------------------------------- /tests/data/archive/TODO/rpmticket_6327/ABOUT: -------------------------------------------------------------------------------- 1 | date-retrieved:2012-05-15 22:53:10-07:00 2 | wget:http://demeter.uni-regensburg.de/SLED11SP1-x64/DVD1/suse/x86_64/gettext-runtime-32bit-0.17-61.40.x86_64.rpm 3 | date-retrieved:2012-05-15 23:01:48-07:00 4 | wget:http://distro.ibiblio.org/pub/linux/distributions/fedora/pub/fedora/linux/development/rawhide/i386/os/Packages/j/jabber-roster-0.1.1-2.fc17.noarch.rpm 5 | date-retrieved:2012-05-15 23:02:57-07:00 6 | wget:http://distro.ibiblio.org/pub/linux/distributions/fedora/pub/fedora/linux/development/rawhide/i386/os/Packages/j/jack_capture-0.9.61-1.fc17.i686.rpm 7 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/sh_ksyms.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/arch/sh/kernel/sh_ksyms.c~ 2008-08-06 09:38:31.000000000 +0200 2 | +++ linux-2.6.23/arch/sh/kernel/sh_ksyms.c 2008-08-07 10:56:18.000000000 +0200 3 | @@ -120,7 +120,7 @@ 4 | DECLARE_EXPORT(__movmem_i4_odd); 5 | DECLARE_EXPORT(__movmemSI12_i4); 6 | 7 | -#if (__GNUC_MINOR__ == 2 || defined(__GNUC_STM_RELEASE__)) 8 | +#if (__GNUC_MINOR__ >= 1 || defined(__GNUC_STM_RELEASE__)) 9 | /* 10 | * GCC 4.2 emits these for division, as do GCC 4.1.x versions of the ST 11 | * compiler which include backported patches. 12 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libiconv/patches/make.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "libiconv-1.11.orig/Makefile.in", 4 | "libiconv-1.11/Makefile.in", 5 | [ 6 | "--- libiconv-1.11.orig/Makefile.in", 7 | "+++ libiconv-1.11/Makefile.in", 8 | "@@ -29,6 +29,9 @@", 9 | "", 10 | "SHELL = /bin/sh", 11 | "", 12 | "+libiconv.so : lib/localcharset.h force", 13 | "+\tcd lib && $(MAKE) all", 14 | "+", 15 | "all : lib/localcharset.h force", 16 | "cd lib && $(MAKE) all", 17 | "cd srclib && $(MAKE) all" 18 | ] 19 | ] 20 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/devinet.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/net/ipv4/devinet.c~", 4 | "linux-2.6.23/net/ipv4/devinet.c", 5 | [ 6 | "--- linux-2.6.23/net/ipv4/devinet.c~", 7 | "+++ linux-2.6.23/net/ipv4/devinet.c", 8 | "@@ -761,6 +761,7 @@", 9 | "inet_del_ifa(in_dev, ifap, 0);", 10 | "ifa->ifa_broadcast = 0;", 11 | "ifa->ifa_anycast = 0;", 12 | "+\t\t\tifa->ifa_scope = 0;", 13 | "}", 14 | "", 15 | "ifa->ifa_address = ifa->ifa_local = sin->sin_addr.s_addr;" 16 | ] 17 | ] 18 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/localversion.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/localversion-stm~", 4 | "linux-2.6.23/localversion-stm", 5 | [ 6 | "diff -u -p /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/localversion-stm\\~ /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/localversion-stm", 7 | "--- linux-2.6.23/localversion-stm~", 8 | "+++ linux-2.6.23/localversion-stm", 9 | "@@ -1,1 +1,1 @@", 10 | "-_stm23_A18B", 11 | "+_stm23_0121" 12 | ] 13 | ] 14 | ] -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/tarred_bzipped.tar.bz2.listing: -------------------------------------------------------------------------------- 1 | 2 | 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 3 | p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64) 4 | 5 | Scanning the drive for archives: 6 | 1 file, 216 bytes (1 KiB) 7 | 8 | Listing archive: /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/tbz/tarred_bzipped.tar.bz2 9 | 10 | -- 11 | Path = /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/tbz/tarred_bzipped.tar.bz2 12 | Type = bzip2 13 | 14 | ---------- 15 | Size = 16 | Packed Size = 17 | 18 | -------------------------------------------------------------------------------- /etc/scripts/test_utils_pip_compatibility_tags.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: test_utils_pip_compatibility_tags.py 2 | 3 | type: github 4 | namespace: pypa 5 | name: pip 6 | version: 20.3.1 7 | subpath: tests/unit/test_utils_compatibility_tags.py 8 | 9 | package_url: pkg:github/pypa/pip@20.3.1#tests/unit/test_utils_compatibility_tags.py 10 | 11 | download_url: https://raw.githubusercontent.com/pypa/pip/20.3.1/tests/unit/test_utils_compatibility_tags.py 12 | copyright: Copyright (c) 2008-2020 The pip developers (see AUTHORS.txt file) 13 | license_expression: mit 14 | notes: subset copied from pip for tag handling 15 | -------------------------------------------------------------------------------- /tests/data/patch/not_patches/common_defs.mk: -------------------------------------------------------------------------------- 1 | ### Macros 2 | 3 | read_filelist = $(shell grep -v '^\#' $(1)) 4 | srcs_to_objs = $(addprefix $(TOOLCHAIN)/, $(1:.cpp=.o)) 5 | 6 | 7 | ### Definitions 8 | 9 | ekioh_release_name = ekioh_src_motorola_20100720_r4525 10 | ekioh_archive = ../$(ekioh_release_name).zip 11 | opensource_filelist := ../opensource_files.txt 12 | opensource_files := $(call read_filelist, $(opensource_filelist)) 13 | webkit_suffix = _webkit525-kreatvgfx 14 | webkit_work_dir = $(SRC_DIR)/3rdParty/webkit/work 15 | extra_dependencies = $(opensource_filelist) ../common_defs.mk ../common_flags.mk 16 | -------------------------------------------------------------------------------- /tests/data/archive/lzma_xz/ABOUT.txt: -------------------------------------------------------------------------------- 1 | notes: The test archives were downloaded on May 15, 2012 from these locations 2 | 3 | http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/binutils-2.22.52.0.3-patches-1.0.tar.xz 4 | http://jaist.dl.sourceforge.net/project/mingw/OldFiles/MinGW%205.1.6/MinGW-5.1.6.exe-src.tar.lzma 5 | http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/coreutils-8.5-patches-1.tar.lzma 6 | http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/texlive-core-patches-20.tar.xz 7 | http://orionsocket.googlecode.com/files/orionsocket-1.0.9.tar.lzma 8 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libpng-1.2.8/pngconf.h.patch: -------------------------------------------------------------------------------- 1 | --- pngconf.h.orig 2005-09-12 07:31:10.000000000 +0200 2 | +++ pngconf.h 2005-09-12 07:33:34.000000000 +0200 3 | @@ -17,6 +17,20 @@ 4 | #ifndef PNGCONF_H 5 | #define PNGCONF_H 6 | 7 | +#ifndef PNG_NO_WRITE_SUPPORTED 8 | +# define PNG_NO_WRITE_SUPPORTED 9 | +#endif 10 | + 11 | +#ifndef PNG_NO_MNG_FEATURES 12 | +# define PNG_NO_MNG_FEATURES 13 | +#endif 14 | + 15 | +#ifdef __MIPSEL 16 | +# ifndef PNG_NO_FLOATING_POINT_SUPPORTED 17 | +# define PNG_NO_FLOATING_POINT_SUPPORTED 18 | +# endif 19 | +#endif 20 | + 21 | #define PNG_1_2_X 22 | 23 | /* 24 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/soc.h.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/include/linux/stm/soc.h.orig", 4 | "linux-2.6.23/include/linux/stm/soc.h", 5 | [ 6 | "--- linux-2.6.23/include/linux/stm/soc.h.orig", 7 | "+++ linux-2.6.23/include/linux/stm/soc.h", 8 | "@@ -420,6 +420,7 @@", 9 | "};", 10 | "", 11 | "#define STASC_FLAG_NORTSCTS\t1", 12 | "+#define STASC_FLAG_NORXTX\t2", 13 | "", 14 | "extern int stasc_console_device;", 15 | "extern struct platform_device *stasc_configured_devices[];" 16 | ] 17 | ] 18 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/openssl-0.9.8/patches/Configure.patch: -------------------------------------------------------------------------------- 1 | --- openssl-0.9.8k/Configure.orig 2009-02-16 16:44:22.000000000 +0800 2 | +++ openssl-0.9.8k/Configure 2009-07-10 16:28:56.000000000 +0800 3 | @@ -954,9 +954,9 @@ 4 | my @fields = split(/\s*:\s*/,$table{$target} . ":" x 30 , -1); 5 | my $cc = $fields[$idx_cc]; 6 | # Allow environment CC to override compiler... 7 | -if($ENV{CC}) { 8 | - $cc = $ENV{CC}; 9 | -} 10 | +#if($ENV{CC}) { 11 | +# $cc = $ENV{CC}; 12 | +#} 13 | my $cflags = $fields[$idx_cflags]; 14 | my $unistd = $fields[$idx_unistd]; 15 | my $thread_cflag = $fields[$idx_thread_cflag]; 16 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libdaemon-0.13/patches/configure.patch: -------------------------------------------------------------------------------- 1 | --- libdaemon-0.13/configure 2008-07-29 04:05:33.000000000 +0530 2 | +++ libdaemon-0.13/configure 2009-05-06 12:42:24.000000000 +0530 3 | @@ -22133,7 +22133,7 @@ 4 | if test "${ac_cv_func_setpgrp_void+set}" = set; then 5 | $as_echo_n "(cached) " >&6 6 | else 7 | - if test "$cross_compiling" = yes; then 8 | + if test "$cross_compiling_no" = yes; then 9 | { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 10 | $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} 11 | { (exit 1); exit 1; }; } 12 | -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/tarred_bzipped_broken.tar.bz2.listing: -------------------------------------------------------------------------------- 1 | 2 | 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 3 | p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64) 4 | 5 | Scanning the drive for archives: 6 | 1 file, 249 bytes (1 KiB) 7 | 8 | Listing archive: /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/tbz/tarred_bzipped_broken.tar.bz2 9 | 10 | -- 11 | Path = /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/tbz/tarred_bzipped_broken.tar.bz2 12 | Type = bzip2 13 | 14 | ---------- 15 | Size = 16 | Packed Size = 17 | 18 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libxml2/patches/iconv.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "libxml2-2.6.31/include/libxml/encoding.h.orig", 4 | "libxml2-2.6.31/include/libxml/encoding.h", 5 | [ 6 | "--- libxml2-2.6.31/include/libxml/encoding.h.orig", 7 | "+++ libxml2-2.6.31/include/libxml/encoding.h", 8 | "@@ -25,7 +25,7 @@", 9 | "#include ", 10 | "", 11 | "#ifdef LIBXML_ICONV_ENABLED", 12 | "-#include ", 13 | "+#include \"libiconv/iconv.h\"", 14 | "#endif", 15 | "#ifdef __cplusplus", 16 | "extern \"C\" {" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/smsc_makefile.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/drivers/net/smsc_911x/Makefile.orig", 4 | "linux-2.6.23/drivers/net/smsc_911x/Makefile", 5 | [ 6 | "--- linux-2.6.23/drivers/net/smsc_911x/Makefile.orig", 7 | "+++ linux-2.6.23/drivers/net/smsc_911x/Makefile", 8 | "@@ -3,5 +3,4 @@", 9 | "pf-$(CONFIG_CPU_SUBTYPE_ST40)\t:= st40.c", 10 | "pf-$(CONFIG_CPU_XSCALE)\t:= xscale_linux_2.4.c", 11 | "", 12 | "-CFLAGS_smsc9118.o += -DUSE_DEBUG", 13 | "CFLAGS_smsc9118.o += -DPLATFORM_SOURCE=\\\"$(pf-y)\\\"" 14 | ] 15 | ] 16 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/init_Kconfig.patch: -------------------------------------------------------------------------------- 1 | Index: linux-2.6.23/init/Kconfig 2 | =================================================================== 3 | --- linux-2.6.23.orig/init/Kconfig 4 | +++ linux-2.6.23/init/Kconfig 5 | @@ -62,6 +62,12 @@ config INIT_ENV_ARG_LIMIT 6 | variables passed to init from the kernel command line. 7 | 8 | 9 | +config KREATV_FIRMWARE 10 | + bool "Configure for use with KreaTV firmware" 11 | + default n 12 | + help 13 | + This option will configure the kernel with patches for firmware. 14 | + 15 | config LOCALVERSION 16 | string "Local version - append to kernel release" 17 | help 18 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/netconsole.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23-orig/drivers/net/netconsole.c", 4 | "linux-2.6.23/drivers/net/netconsole.c", 5 | [ 6 | "--- linux-2.6.23-orig/drivers/net/netconsole.c", 7 | "+++ linux-2.6.23/drivers/net/netconsole.c", 8 | "@@ -166,7 +166,7 @@", 9 | "option_setup(config);", 10 | "", 11 | "if(!configured) {", 12 | "-\t\tprintk(\"netconsole: not configured, aborting\\n\");", 13 | "+\t\tprintk(KERN_NOTICE \"netconsole: not configured\\n\");", 14 | "return 0;", 15 | "}", 16 | "" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patool.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: 2 | archive/7z/t .7z 3 | archive/iso/t.iso.foo 4 | archive/cp7/t .cb7 5 | archive/cp7/t.cb7.foo 6 | archive/cab/t.cab.foo 7 | archive/cbr/t.cbr 8 | archive/cbr/t.cbr.foo 9 | archive/cbt/t.cbt 10 | archive/cbt/t.cbt.foo 11 | archive/cbz/t.cbz 12 | archive/cbz/t.cbz.foo 13 | archive/cpio/t.cpio.foo 14 | 15 | version: 1.12 16 | name: patool 17 | home_url: http://wummel.github.io/patool/ 18 | 19 | owner: Bastian Kleineidam 20 | author_url: https://github.com/wummel 21 | 22 | license_text_file: gpl-3.0.LICENSE 23 | 24 | notes: these are archive test files borrowed from patool -------------------------------------------------------------------------------- /.readthedocs.yml: -------------------------------------------------------------------------------- 1 | # .readthedocs.yml 2 | # Read the Docs configuration file 3 | # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details 4 | 5 | # Required 6 | version: 2 7 | 8 | # Build in latest ubuntu/python 9 | build: 10 | os: ubuntu-22.04 11 | tools: 12 | python: "3.11" 13 | 14 | # Build PDF & ePub 15 | formats: 16 | - epub 17 | - pdf 18 | 19 | # Where the Sphinx conf.py file is located 20 | sphinx: 21 | configuration: docs/source/conf.py 22 | 23 | # Setting the python version and doc build requirements 24 | python: 25 | install: 26 | - method: pip 27 | path: . 28 | extra_requirements: 29 | - docs 30 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/busybox/patches/fix-subarch.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "busybox-1.13.3/Makefile.orig", 4 | "busybox-1.13.3/Makefile", 5 | [ 6 | "--- busybox-1.13.3/Makefile.orig", 7 | "+++ busybox-1.13.3/Makefile", 8 | "@@ -177,7 +177,7 @@", 9 | "# SUBARCH is subsequently ignored.", 10 | "", 11 | "ifneq ($(CROSS_COMPILE),)", 12 | "-SUBARCH := $(shell echo $(CROSS_COMPILE) | cut -d- -f1)", 13 | "+SUBARCH := $(shell echo $(CROSS_COMPILE) | awk -F/ '{print $NF}' | cut -d- -f1)", 14 | "else", 15 | "SUBARCH := $(shell uname -m)", 16 | "endif" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/drivers_net_Makefile.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/drivers/net/Makefile.orig 2009-02-04 15:50:03.000000000 +0100 2 | +++ linux-2.6.23/drivers/net/Makefile 2009-01-19 19:06:26.000000000 +0100 3 | @@ -2,6 +2,7 @@ 4 | # Makefile for the Linux network (ethercard) device drivers. 5 | # 6 | 7 | +obj-$(CONFIG_PHYLIB) += phy/ 8 | obj-$(CONFIG_E1000) += e1000/ 9 | obj-$(CONFIG_IBM_EMAC) += ibm_emac/ 10 | obj-$(CONFIG_IXGB) += ixgb/ 11 | @@ -79,7 +80,6 @@ 12 | # 13 | 14 | obj-$(CONFIG_MII) += mii.o 15 | -obj-$(CONFIG_PHYLIB) += phy/ 16 | 17 | obj-$(CONFIG_SUNDANCE) += sundance.o 18 | obj-$(CONFIG_HAMACHI) += hamachi.o 19 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libjpeg-v6b/patches/makefile.cfg.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "jpeg-6b.orig/makefile.cfg", 4 | "jpeg-6b/makefile.cfg", 5 | [ 6 | "--- jpeg-6b.orig/makefile.cfg", 7 | "+++ jpeg-6b/makefile.cfg", 8 | "@@ -168,7 +168,7 @@", 9 | "", 10 | "# with libtool:", 11 | "libjpeg.la: @A2K_DEPS@ $(LIBOBJECTS)", 12 | "-\t$(LIBTOOL) --mode=link $(CC) -o libjpeg.la $(LIBOBJECTS) \\", 13 | "+\t$(LIBTOOL) --mode=link \"$(CC)\" -o libjpeg.la $(LIBOBJECTS) \\", 14 | "-rpath $(libdir) -version-info $(JPEG_LIB_VERSION)", 15 | "", 16 | "# sample programs:" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libpng-1.2.8/pngrutil.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "pngrutil.c.orig", 4 | "pngrutil.c", 5 | [ 6 | "--- pngrutil.c.orig", 7 | "+++ pngrutil.c", 8 | "@@ -422,8 +422,8 @@", 9 | "png_crc_finish(png_ptr, length);", 10 | "return;", 11 | "}", 12 | "- else if (png_ptr->mode & PNG_HAVE_PLTE)", 13 | "- png_error(png_ptr, \"Duplicate PLTE chunk\");", 14 | "+ //else if (png_ptr->mode & PNG_HAVE_PLTE)", 15 | "+ // png_error(png_ptr, \"Duplicate PLTE chunk\");", 16 | "", 17 | "png_ptr->mode |= PNG_HAVE_PLTE;", 18 | "" 19 | ] 20 | ] 21 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/arch_sh_kernel_cpu_init.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/arch/sh/kernel/cpu/init.c.orig", 4 | "linux-2.6.23/arch/sh/kernel/cpu/init.c", 5 | [ 6 | "--- linux-2.6.23/arch/sh/kernel/cpu/init.c.orig", 7 | "+++ linux-2.6.23/arch/sh/kernel/cpu/init.c", 8 | "@@ -229,6 +229,9 @@", 9 | "panic(\"Unknown CPU\");", 10 | "", 11 | "#ifdef CONFIG_32BIT", 12 | "+#ifndef CONFIG_CPU_SUBTYPE_STX7105", 13 | "+ if ((ctrl_inl(MMUCR)&MMUCR_SE)==MMUCR_SE)", 14 | "+#endif", 15 | "pmb_init();", 16 | "#endif", 17 | "" 18 | ] 19 | ] 20 | ] -------------------------------------------------------------------------------- /extractcode.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | copyright: copyright (c) nexB. Inc. and others 3 | description: A mostly universal archive extractor using 7zip, libarchive and the 4 | Python standard library for reliable archive extraction on Linux, Windows and 5 | macOS. It is used by ScanCode toolkit and related projects. 6 | keywords: archive, extraction, libarchive, 7zip, gzip, xz, lzma, bzip2, tar, ar, cpio, scancode-toolkit 7 | homepage_url: https://github.com/nexB/extractcode 8 | holder: nexB. Inc. and others 9 | holder_contact: info@aboutcode.org 10 | license_expression: apache-2.0 11 | name: extractcode 12 | package_url: pkg:pypi/extractcode 13 | primary_language: Python 14 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libjpeg-v6b/patches/configure.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "jpeg-6b/configure", 4 | "jpeg-6b/configure.cross", 5 | [ 6 | "--- jpeg-6b/configure", 7 | "+++ jpeg-6b/configure.cross", 8 | "@@ -1559,7 +1559,7 @@", 9 | "if test \"x$LTSTATIC\" = xno; then", 10 | "disable_static=\"--disable-static\"", 11 | "fi", 12 | "- $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh", 13 | "+ $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh $host", 14 | "fi", 15 | "", 16 | "# Select memory manager depending on user input." 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/not_patches/common_flags.mk: -------------------------------------------------------------------------------- 1 | CPPFLAGS += -DBROWSER 2 | CPPFLAGS += -DBROWSER_STANDALONE 3 | CPPFLAGS += -DEKIOH 4 | CPPFLAGS += -DFONT_ENGINE_FREETYPE 5 | #CPPFLAGS += -DMOZ_X11 6 | CPPFLAGS += -DNDEBUG 7 | #CPPFLAGS += -DXP_UNIX 8 | CPPFLAGS += -D_GNU_SOURCE 9 | 10 | CXXFLAGS += -fno-rtti 11 | 12 | OPTIMIZATION_FLAGS += -fno-strict-aliasing 13 | 14 | # COMMON_FLAGS contains OPTIMIZATION_FLAGS so after this point, changes to 15 | # OPTIMIZATION_FLAGS will not have any effect. Improve SunSpider JavaScript 16 | # benchmark result and gives around 10% faster html rendering. 17 | COMMON_FLAGS := $(filter-out -finline-limit=% -Os -g,$(COMMON_FLAGS)) 18 | COMMON_FLAGS += -O2 19 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/squashfs3.3_revert.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23.orig/fs/squashfs/Makefile", 4 | "dev/null", 5 | [ 6 | "Index: linux-2.6.23/fs/squashfs/Makefile", 7 | "===================================================================", 8 | "--- linux-2.6.23.orig/fs/squashfs/Makefile", 9 | "+++ dev/null", 10 | "@@ -1,7 +0,0 @@", 11 | "-#", 12 | "-# Makefile for the linux squashfs routines.", 13 | "-#", 14 | "-", 15 | "-obj-$(CONFIG_SQUASHFS) += squashfs.o", 16 | "-squashfs-y += inode.o", 17 | "-squashfs-y += squashfs2_0.o" 18 | ] 19 | ] 20 | ] -------------------------------------------------------------------------------- /etc/scripts/utils_thirdparty.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: utils_thirdparty.py 2 | package_url: pkg:github.com/pypa/pip/@20.3.1#src/pip/_internal/models/wheel.py 3 | type: github 4 | namespace: pypa 5 | name: pip 6 | version: 20.3.1 7 | subpath: src/pip/_internal/models/wheel.py 8 | 9 | download_url: https://github.com/pypa/pip/blob/20.3.1/src/pip/_internal/models/wheel.py 10 | copyright: Copyright (c) 2008-2020 The pip developers (see AUTHORS.txt file) 11 | license_expression: mit 12 | notes: copied from pip-20.3.1 pip/_internal/models/wheel.py 13 | The models code has been heavily inspired from the ISC-licensed packaging-dists 14 | https://github.com/uranusjr/packaging-dists by Tzu-ping Chung 15 | -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/t.cbr-linux.listing-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "path":"t/t.txt", 4 | "size":"2", 5 | "date":"2010-02-19 07:48:58", 6 | "is_file":true, 7 | "is_dir":false, 8 | "is_special":false, 9 | "is_hardlink":false, 10 | "is_symlink":false, 11 | "is_broken_link":false, 12 | "link_target":null, 13 | "errors":[] 14 | }, 15 | { 16 | "path":"t", 17 | "size":"0", 18 | "date":"2010-02-19 07:49:56", 19 | "is_file":false, 20 | "is_dir":true, 21 | "is_special":false, 22 | "is_hardlink":false, 23 | "is_symlink":false, 24 | "is_broken_link":false, 25 | "link_target":null, 26 | "errors":[] 27 | } 28 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/delayed_i2c_read.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/drivers/i2c/busses/i2c-stm.c.org", 4 | "linux-2.6.23/drivers/i2c/busses/i2c-stm.c", 5 | [ 6 | "--- linux-2.6.23/drivers/i2c/busses/i2c-stm.c.org", 7 | "+++ linux-2.6.23/drivers/i2c/busses/i2c-stm.c", 8 | "@@ -453,6 +453,7 @@", 9 | "", 10 | "case IIC_FSM_DATA_READ:", 11 | "dbg_print2(\"-Read\\n\");", 12 | "+\t\tudelay(10);", 13 | "/* Clear the RX buffer */", 14 | "idx = (ssc_load32(adap, SSC_RX_FSTAT) & SSC_RX_FSTAT_STATUS);", 15 | "if (!idx && (ssc_load32(adap, SSC_STA) & SSC_STA_RIR))" 16 | ] 17 | ] 18 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/cfi_util.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23-orig/drivers/mtd/chips/cfi_util.c", 4 | "linux-2.6.23/drivers/mtd/chips/cfi_util.c", 5 | [ 6 | "--- linux-2.6.23-orig/drivers/mtd/chips/cfi_util.c", 7 | "+++ linux-2.6.23/drivers/mtd/chips/cfi_util.c", 8 | "@@ -36,7 +36,7 @@", 9 | "int i;", 10 | "struct cfi_extquery *extp = NULL;", 11 | "", 12 | "-\tprintk(\" %s Extended Query Table at 0x%4.4X\\n\", name, adr);", 13 | "+\tprintk(KERN_DEBUG \" %s Extended Query Table at 0x%4.4X\\n\", name, adr);", 14 | "if (!adr)", 15 | "goto out;", 16 | "" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/namespace.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23-orig/fs/namespace.c", 4 | "linux-2.6.23/fs/namespace.c", 5 | [ 6 | "--- linux-2.6.23-orig/fs/namespace.c", 7 | "+++ linux-2.6.23/fs/namespace.c", 8 | "@@ -1827,7 +1827,7 @@", 9 | "nr_hash = 1UL << hash_bits;", 10 | "hash_mask = nr_hash - 1;", 11 | "", 12 | "-\tprintk(\"Mount-cache hash table entries: %d\\n\", nr_hash);", 13 | "+\tprintk(KERN_DEBUG \"Mount-cache hash table entries: %d\\n\", nr_hash);", 14 | "", 15 | "/* And initialize the newly allocated array */", 16 | "d = mount_hashtable;" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/webkit/opensource/prepatches/support_parallel_idl_gen.patch: -------------------------------------------------------------------------------- 1 | Index: src/3rdParty/webkit/Rules.mk 2 | =================================================================== 3 | --- src.orig/3rdParty/webkit/Rules.mk 4 | +++ src/3rdParty/webkit/Rules.mk 5 | @@ -13,8 +13,8 @@ dir := $(workdir)/WebCore 6 | -include $(dir)/Rules.mk 7 | 8 | define $(postpatch) 9 | -(cd $(workdir)/JavaScriptCore && ./make-generated-sources.sh) 10 | -(cd $(workdir)/WebCore && ./make-generated-sources.sh) 11 | ++(cd $(workdir)/JavaScriptCore && ./make-generated-sources.sh) 12 | ++(cd $(workdir)/WebCore && ./make-generated-sources.sh) 13 | endef 14 | 15 | ifeq ($(MOTO_ST40_OPTIMISATION_HACKS),Y) 16 | -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- 1 | aboutcode-toolkit==7.0.2 2 | black==22.6.0 3 | bleach==5.0.1 4 | build==0.7.0 5 | commonmark==0.9.1 6 | docutils==0.19 7 | et-xmlfile==1.1.0 8 | execnet==1.9.0 9 | iniconfig==1.1.1 10 | isort==5.10.1 11 | jeepney==0.8.0 12 | keyring==23.7.0 13 | mypy-extensions==0.4.3 14 | openpyxl==3.0.10 15 | pathspec==0.9.0 16 | pep517==0.12.0 17 | pkginfo==1.8.3 18 | platformdirs==2.5.2 19 | py==1.11.0 20 | pytest==7.1.2 21 | pytest-forked==1.4.0 22 | pytest-xdist==2.5.0 23 | readme-renderer==35.0 24 | requests-toolbelt==0.9.1 25 | rfc3986==2.0.0 26 | rich==12.5.1 27 | secretstorage==3.3.2 28 | tomli==2.0.1 29 | tqdm==4.64.0 30 | twine==4.0.1 31 | typing_extensions==4.3.0 32 | vendorize==0.3.0 33 | 34 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/busybox/patches/gtrick.patch: -------------------------------------------------------------------------------- 1 | Index: busybox-1.13.3/editors/awk.c 2 | =================================================================== 3 | --- busybox-1.13.3.orig/editors/awk.c 4 | +++ busybox-1.13.3/editors/awk.c 5 | @@ -448,8 +448,13 @@ struct globals2 { 6 | /* biggest and least used members go last */ 7 | tsplitter fsplitter, rsplitter; 8 | }; 9 | +#ifdef __BCM74XX__ 10 | +struct globals G1; 11 | +struct globals2 G; 12 | +#else 13 | #define G1 (ptr_to_globals[-1]) 14 | #define G (*(struct globals2 *)ptr_to_globals) 15 | +#endif 16 | /* For debug. nm --size-sort awk.o | grep -vi ' [tr] ' */ 17 | /*char G1size[sizeof(G1)]; - 0x74 */ 18 | /*char Gsize[sizeof(G)]; - 0x1c4 */ 19 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/kernel_resource.patch: -------------------------------------------------------------------------------- 1 | diff -u /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/kernel/resource.c\~ /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/kernel/resource.c 2 | --- linux-2.6.23/kernel/resource.c~ 2009-04-07 08:01:25.000000000 +0200 3 | +++ linux-2.6.23/kernel/resource.c 2009-04-27 15:40:19.000000000 +0200 4 | @@ -589,10 +589,6 @@ 5 | } 6 | 7 | write_unlock(&resource_lock); 8 | - 9 | - printk(KERN_WARNING "Trying to free nonexistent resource " 10 | - "<%016llx-%016llx>\n", (unsigned long long)start, 11 | - (unsigned long long)end); 12 | } 13 | EXPORT_SYMBOL(__release_region); 14 | 15 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/pid.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23-orig/kernel/pid.c", 4 | "linux-2.6.23/kernel/pid.c", 5 | [ 6 | "--- linux-2.6.23-orig/kernel/pid.c", 7 | "+++ linux-2.6.23/kernel/pid.c", 8 | "@@ -394,7 +394,7 @@", 9 | "pidhash_shift = min(12, pidhash_shift);", 10 | "pidhash_size = 1 << pidhash_shift;", 11 | "", 12 | "-\tprintk(\"PID hash table entries: %d (order: %d, %Zd bytes)\\n\",", 13 | "+\tprintk(KERN_DEBUG \"PID hash table entries: %d (order: %d, %Zd bytes)\\n\",", 14 | "pidhash_size, pidhash_shift,", 15 | "pidhash_size * sizeof(struct hlist_head));", 16 | "" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/xvidcap-xorg.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "xvidcap-1.1.7-orig/src/capture.c", 4 | "xvidcap-1.1.7/src/capture.c", 5 | [ 6 | "diff -Nur xvidcap-1.1.7-orig/src/capture.c xvidcap-1.1.7/src/capture.c", 7 | "--- xvidcap-1.1.7-orig/src/capture.c", 8 | "+++ xvidcap-1.1.7/src/capture.c", 9 | "@@ -65,7 +65,7 @@", 10 | "#include ", 11 | "#include ", 12 | "#include ", 13 | "-#include ", 14 | "+#include ", 15 | "#ifndef SOLARIS", 16 | "#include ", 17 | "#endif // SOLARIS" 18 | ] 19 | ] 20 | ] -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/insert-emptyframe.svgz.listing: -------------------------------------------------------------------------------- 1 | 2 | 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 3 | p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64) 4 | 5 | Scanning the drive for archives: 6 | 1 file, 2835 bytes (3 KiB) 7 | 8 | Listing archive: /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/svgz/insert-emptyframe.svgz 9 | 10 | -- 11 | Path = /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/svgz/insert-emptyframe.svgz 12 | Type = gzip 13 | Headers Size = 10 14 | 15 | ---------- 16 | Path = insert-emptyframe 17 | Size = 13061 18 | Packed Size = 2835 19 | Modified = 20 | Host OS = FAT 21 | CRC = E75A8CD2 22 | 23 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- 1 | # Minimal makefile for Sphinx documentation 2 | # 3 | 4 | # You can set these variables from the command line, and also 5 | # from the environment for the first two. 6 | SPHINXOPTS ?= 7 | SPHINXBUILD ?= sphinx-build 8 | SOURCEDIR = source 9 | BUILDDIR = build 10 | 11 | # Put it first so that "make" without argument is like "make help". 12 | help: 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 14 | 15 | .PHONY: help Makefile 16 | 17 | # Catch-all target: route all unknown targets to Sphinx using the new 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 19 | %: Makefile 20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 21 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/if_ppp.h.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/include/linux/if_ppp.h.orig", 4 | "linux-2.6.23/include/linux/if_ppp.h", 5 | [ 6 | "--- linux-2.6.23/include/linux/if_ppp.h.orig", 7 | "+++ linux-2.6.23/include/linux/if_ppp.h", 8 | "@@ -110,6 +110,10 @@", 9 | "struct ppp_comp_stats stats;", 10 | "};", 11 | "", 12 | "+#ifndef aligned_u64", 13 | "+#define aligned_u64 unsigned long long __attribute__((aligned(8)))", 14 | "+#endif", 15 | "+", 16 | "/* For PPPIOCGL2TPSTATS */", 17 | "struct pppol2tp_ioc_stats {", 18 | "__u16\t\ttunnel_id;\t/* redundant */" 19 | ] 20 | ] 21 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/e2fsprogs-1.37/uuidlibs_blkidlibs_only_target_Makefile.in.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "Makefile.in.orig", 4 | "Makefile.in", 5 | [ 6 | "--- Makefile.in.orig", 7 | "+++ Makefile.in", 8 | "@@ -88,6 +88,12 @@", 9 | "fi ; \\", 10 | "done", 11 | "", 12 | "+uuid_libs:", 13 | "+\t(cd lib/uuid && $(MAKE) elfshared && $(MAKE) libuuid.so.1.2)", 14 | "+", 15 | "+blkid_libs:", 16 | "+\t(cd lib/blkid && $(MAKE) elfshared && $(MAKE) libblkid.so.1.0)", 17 | "+", 18 | "mostlyclean: mostlyclean-recursive mostlyclean-local", 19 | "", 20 | "clean: clean-recursive clean-local clean-doc" 21 | ] 22 | ] 23 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/time.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23-orig/arch/sh/kernel/time.c", 4 | "linux-2.6.23/arch/sh/kernel/time.c", 5 | [ 6 | "--- linux-2.6.23-orig/arch/sh/kernel/time.c", 7 | "+++ linux-2.6.23/arch/sh/kernel/time.c", 8 | "@@ -255,7 +255,7 @@", 9 | "init_sh_clocksource();", 10 | "", 11 | "if (sh_hpt_frequency)", 12 | "-\t\tprintk(\"Using %lu.%03lu MHz high precision timer.\\n\",", 13 | "+\t\tprintk(KERN_INFO \"Using %lu.%03lu MHz high precision timer.\\n\",", 14 | "((sh_hpt_frequency + 500) / 1000) / 1000,", 15 | "((sh_hpt_frequency + 500) / 1000) % 1000);", 16 | "" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/cmdlinepart.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/drivers/mtd/cmdlinepart.c.orig 2006-06-18 03:49:35.000000000 +0200 2 | +++ linux-2.6.23/drivers/mtd/cmdlinepart.c 2007-01-26 16:34:34.000000000 +0100 3 | @@ -315,10 +315,14 @@ 4 | { 5 | for(i = 0, offset = 0; i < part->num_parts; i++) 6 | { 7 | +#if 0 8 | if (part->parts[i].offset == OFFSET_CONTINUOUS) 9 | part->parts[i].offset = offset; 10 | else 11 | offset = part->parts[i].offset; 12 | +#else 13 | + offset = part->parts[i].offset; 14 | +#endif 15 | if (part->parts[i].size == SIZE_REMAINING) 16 | part->parts[i].size = master->size - offset; 17 | if (offset + part->parts[i].size > master->size) 18 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/mmu_context.h.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/include/asm-sh/mmu_context.h.orig", 4 | "linux-2.6.23/include/asm-sh/mmu_context.h", 5 | [ 6 | "--- linux-2.6.23/include/asm-sh/mmu_context.h.orig", 7 | "+++ linux-2.6.23/include/asm-sh/mmu_context.h", 8 | "@@ -191,7 +191,9 @@", 9 | "", 10 | "/* Enable MMU */", 11 | "#ifdef CONFIG_32BIT", 12 | "-\tif (1) /* SH4-202 and SE */", 13 | "+#ifndef CONFIG_CPU_SUBTYPE_STX7105", 14 | "+\tif ((ctrl_inl(MMUCR)&MMUCR_SE)==MMUCR_SE) /* SH4-202 and SE */", 15 | "+#endif", 16 | "mmucr_init |= MMUCR_SE;", 17 | "#endif", 18 | "" 19 | ] 20 | ] 21 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/webkit/opensource/patches/enable_proxy_setup_log.patch: -------------------------------------------------------------------------------- 1 | platform/network/ekioh/ResourceHandleManager.cpp 2 | Index: src/Browser/WebCore/platform/network/ekioh/ResourceHandleManager525.cpp 3 | =================================================================== 4 | --- src.orig/Browser/WebCore/platform/network/ekioh/ResourceHandleManager.cpp 5 | +++ src/Browser/WebCore/platform/network/ekioh/ResourceHandleManager525.cpp 6 | @@ -674,6 +674,7 @@ void ResourceHandleManager::setProxy(con 7 | } 8 | 9 | char* cProxyString = proxyString.toCString(); 10 | + fprintf(stderr, "proxy: '%s'\n", cProxyString); 11 | curl_easy_setopt(curlHandle, CURLOPT_PROXY, cProxyString); 12 | EKString::freeCString(cProxyString); 13 | } 14 | -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/texlive-core-patches-20.tar.xz.listing: -------------------------------------------------------------------------------- 1 | 2 | 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 3 | p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64) 4 | 5 | Scanning the drive for archives: 6 | 1 file, 2916 bytes (3 KiB) 7 | 8 | Listing archive: /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/lzma_xz/texlive-core-patches-20.tar.xz 9 | 10 | -- 11 | Path = /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/lzma_xz/texlive-core-patches-20.tar.xz 12 | Type = xz 13 | Physical Size = 2916 14 | Method = LZMA2:23 CRC64 15 | Streams = 1 16 | Blocks = 1 17 | 18 | ---------- 19 | Size = 20480 20 | Packed Size = 2916 21 | Method = LZMA2:23 CRC64 22 | 23 | -------------------------------------------------------------------------------- /etc/ci/macports-ci.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: macports-ci 2 | name: macports-ci 3 | version: c9676e67351a3a519e37437e196cd0ee9c2180b8 4 | download_url: https://raw.githubusercontent.com/GiovanniBussi/macports-ci/c9676e67351a3a519e37437e196cd0ee9c2180b8/macports-ci 5 | description: Simplify MacPorts setup on Travis-CI 6 | homepage_url: https://github.com/GiovanniBussi/macports-ci 7 | license_expression: mit 8 | copyright: Copyright (c) Giovanni Bussi 9 | attribute: yes 10 | checksum_md5: 5d31d479132502f80acdaed78bed9e23 11 | checksum_sha1: 74b15643bd1a528d91b4a7c2169c6fc656f549c2 12 | package_url: pkg:github/giovannibussi/macports-ci@c9676e67351a3a519e37437e196cd0ee9c2180b8#macports-ci 13 | licenses: 14 | - key: mit 15 | name: MIT License 16 | file: mit.LICENSE 17 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/avahi-0.6.25/patches/configure.patch: -------------------------------------------------------------------------------- 1 | --- avahi-0.6.25/configure 2009-05-21 15:52:31.000000000 +0530 2 | +++ avahi-0.6.25/configure 2009-05-21 15:55:36.000000000 +0530 3 | @@ -21673,6 +21673,9 @@ 4 | ;; 5 | esac 6 | 7 | +if test "$cross_compiling" != yes; then 8 | + 9 | + 10 | if test -n "0.35.0"; then 11 | { $as_echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5 12 | $as_echo_n "checking for intltool >= 0.35.0... " >&6; } 13 | @@ -21836,7 +21839,7 @@ 14 | INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 15 | 16 | 17 | - 18 | +fi 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/data/sevenzip/relative_nested.zip-extract-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | "/a_parent_folder.txt", 3 | "/sub/", 4 | "/sub/sub/", 5 | "/sub/sub/sub/", 6 | "/sub/sub/sub/sub/", 7 | "/sub/sub/sub/sub/sub/", 8 | "/sub/sub/sub/sub/sub/sub/", 9 | "/sub/sub/sub/sub/sub/sub/a_parent_folder_in_sub_1.txt", 10 | "/sub/sub/sub/sub/sub/sub/sub/", 11 | "/sub/sub/sub/sub/sub/sub/sub/sub/", 12 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/", 13 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/", 14 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/", 15 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/", 16 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/a_parent_folder_in_sub_2.txt", 17 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/a_parent_folder_in_sub_3.txt" 18 | ] -------------------------------------------------------------------------------- /tests/data/sevenzip/relative_nested.zip-extract-expected-win.json: -------------------------------------------------------------------------------- 1 | [ 2 | "/a_parent_folder.txt", 3 | "/sub/", 4 | "/sub/sub/", 5 | "/sub/sub/sub/", 6 | "/sub/sub/sub/sub/", 7 | "/sub/sub/sub/sub/sub/", 8 | "/sub/sub/sub/sub/sub/sub/", 9 | "/sub/sub/sub/sub/sub/sub/a_parent_folder_in_sub_1.txt", 10 | "/sub/sub/sub/sub/sub/sub/sub/", 11 | "/sub/sub/sub/sub/sub/sub/sub/sub/", 12 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/", 13 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/", 14 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/", 15 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/", 16 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/a_parent_folder_in_sub_2.txt", 17 | "/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/sub/a_parent_folder_in_sub_3.txt" 18 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/nand_flash_based_bbt.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/drivers/mtd/nand/stm_nand_flex.c 2010-02-03 14:42:36.000000000 +0100 2 | +++ nand_bbt_fix/stm_nand_flex.c 2010-02-03 14:45:21.000000000 +0100 3 | @@ -883,10 +883,9 @@ 4 | data->chip.options |= NAND_NO_SUBPAGE_WRITE; /* Not tested, disable */ 5 | data->chip.options |= NAND_NO_AUTOINCR; /* Not tested, disable */ 6 | 7 | -#ifdef CONFIG_STM_NAND_FLEX_BOOTMODESUPPORT 8 | - /* Force use of BBT when BOOTMODESUPPORT enabled */ 9 | + /* We use Flash based BBT to save boot time */ 10 | data->chip.options |= NAND_USE_FLASH_BBT; 11 | -#endif 12 | + 13 | /* Callbacks for FLEX mode operation */ 14 | data->chip.cmd_ctrl = flex_cmd_ctrl; 15 | data->chip.select_chip = flex_select_chip; 16 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/sh_ksyms.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/arch/sh/kernel/sh_ksyms.c~", 4 | "linux-2.6.23/arch/sh/kernel/sh_ksyms.c", 5 | [ 6 | "--- linux-2.6.23/arch/sh/kernel/sh_ksyms.c~", 7 | "+++ linux-2.6.23/arch/sh/kernel/sh_ksyms.c", 8 | "@@ -120,7 +120,7 @@", 9 | "DECLARE_EXPORT(__movmem_i4_odd);", 10 | "DECLARE_EXPORT(__movmemSI12_i4);", 11 | "", 12 | "-#if (__GNUC_MINOR__ == 2 || defined(__GNUC_STM_RELEASE__))", 13 | "+#if (__GNUC_MINOR__ >= 1 || defined(__GNUC_STM_RELEASE__))", 14 | "/*", 15 | "* GCC 4.2 emits these for division, as do GCC 4.1.x versions of the ST", 16 | "* compiler which include backported patches." 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libdaemon-0.13/patches/configure.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "libdaemon-0.13/configure", 4 | "libdaemon-0.13/configure", 5 | [ 6 | "--- libdaemon-0.13/configure", 7 | "+++ libdaemon-0.13/configure", 8 | "@@ -22133,7 +22133,7 @@", 9 | "if test \"${ac_cv_func_setpgrp_void+set}\" = set; then", 10 | "$as_echo_n \"(cached) \" >&6", 11 | "else", 12 | "- if test \"$cross_compiling\" = yes; then", 13 | "+ if test \"$cross_compiling_no\" = yes; then", 14 | "{ { $as_echo \"$as_me:$LINENO: error: cannot check setpgrp when cross compiling\" >&5", 15 | "$as_echo \"$as_me: error: cannot check setpgrp when cross compiling\" >&2;}", 16 | "{ (exit 1); exit 1; }; }" 17 | ] 18 | ] 19 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/ksymhash_elflib.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/scripts/ksymhash/elflib.c~", 4 | "linux-2.6.23/scripts/ksymhash/elflib.c", 5 | [ 6 | "--- linux-2.6.23/scripts/ksymhash/elflib.c~", 7 | "+++ linux-2.6.23/scripts/ksymhash/elflib.c", 8 | "@@ -80,8 +80,8 @@", 9 | "}", 10 | "", 11 | "/* Check if it is the vmlinux or lkm */", 12 | "-\tlkm_suffix = strstr(filename, \".ko\");", 13 | "-\tif (lkm_suffix && (strlen(lkm_suffix) == 3))", 14 | "+\tlkm_suffix = strncmp(filename + strlen(filename) - 3, \".ko\", 3);", 15 | "+\tif (lkm_suffix == 0)", 16 | "/* Likely this is a lkm */", 17 | "info->is_lkm = 1;", 18 | "else {" 19 | ] 20 | ] 21 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/webkit/opensource/patches/file_secure_mode.patch: -------------------------------------------------------------------------------- 1 | Index: src/Browser/WebCore/platform/network/ekioh/ResourceHandleManager525.cpp 2 | =================================================================== 3 | --- src.orig/Browser/WebCore/platform/network/ekioh/ResourceHandleManager525.cpp 4 | +++ src/Browser/WebCore/platform/network/ekioh/ResourceHandleManager525.cpp 5 | @@ -814,6 +814,11 @@ void ResourceHandleManager::startJob() 6 | cacheEntry->cancel(); 7 | return; 8 | } 9 | + if(protocol.lower() == "file") { 10 | + DBG("Http secure mode is set to %d\n", secureMode); 11 | + DBG("Allowing non-secure access for local filesystem\n"); 12 | + secureMode = 0; 13 | + } 14 | } 15 | 16 | cacheEntry->setHandle(curl_easy_init()); 17 | -------------------------------------------------------------------------------- /tests/data/patch/patches/ElectricFence-2.0.5-longjmp.patch: -------------------------------------------------------------------------------- 1 | --- ElectricFence-2.0.5/eftest.c.ewt Tue Jun 2 09:25:10 1998 2 | +++ ElectricFence-2.0.5/eftest.c Tue Jun 2 09:24:58 1998 3 | @@ -24,7 +24,7 @@ 4 | extern int EF_PROTECT_BELOW; 5 | extern int EF_ALIGNMENT; 6 | 7 | -static jmp_buf env; 8 | +static sigjmp_buf env; 9 | 10 | /* 11 | * There is still too little standardization of the arguments and return 12 | @@ -40,13 +40,13 @@ 13 | ) 14 | { 15 | signal(PAGE_PROTECTION_VIOLATED_SIGNAL, SIG_DFL); 16 | - longjmp(env, 1); 17 | + siglongjmp(env, 1); 18 | } 19 | 20 | static int 21 | gotSegmentationFault(int (*test)(void)) 22 | { 23 | - if ( setjmp(env) == 0 ) { 24 | + if ( sigsetjmp(env, 1) == 0 ) { 25 | int status; 26 | 27 | signal(PAGE_PROTECTION_VIOLATED_SIGNAL 28 | -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.ar-extract-errors-expected.json: -------------------------------------------------------------------------------- 1 | { 2 | "\\:.1.gz":"Empty archive or incorrect arguments", 3 | "ab*.t*":"Empty archive or incorrect arguments", 4 | "some file":"Empty archive or incorrect arguments", 5 | "[\\:*.1":"Empty archive or incorrect arguments", 6 | "some\"file":"Empty archive or incorrect arguments", 7 | "ab\\.t\\":"Empty archive or incorrect arguments", 8 | "some\\\"file":"Empty archive or incorrect arguments", 9 | "ab\t.t":"Empty archive or incorrect arguments", 10 | "ab\n.t":"Empty archive or incorrect arguments", 11 | "some 'file":"Empty archive or incorrect arguments", 12 | "ab<.t<":"Empty archive or incorrect arguments", 13 | "ab>.t>":"Empty archive or incorrect arguments", 14 | "ab?.t?":"Empty archive or incorrect arguments" 15 | } -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/sample.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23.orig/fs/Makefile", 4 | "linux-2.6.23/fs/Makefile", 5 | [ 6 | "Index: linux-2.6.23/fs/Makefile", 7 | "===================================================================", 8 | "--- linux-2.6.23.orig/fs/Makefile", 9 | "+++ linux-2.6.23/fs/Makefile", 10 | "@@ -72,7 +72,6 @@ obj-$(CONFIG_JBD)\t\t+= jbd/", 11 | "obj-$(CONFIG_JBD2)\t\t+= jbd2/", 12 | "obj-$(CONFIG_EXT2_FS)\t\t+= ext2/", 13 | "obj-$(CONFIG_CRAMFS)\t\t+= cramfs/", 14 | "-obj-$(CONFIG_SQUASHFS)\t\t+= squashfs/", 15 | "obj-$(CONFIG_RAMFS)\t\t+= ramfs/", 16 | "obj-$(CONFIG_HUGETLBFS)\t\t+= hugetlbfs/", 17 | "obj-$(CONFIG_CODA_FS)\t\t+= coda/" 18 | ] 19 | ] 20 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/phy.h.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/include/linux/phy.h.orig", 4 | "linux-2.6.23/include/linux/phy.h", 5 | [ 6 | "--- linux-2.6.23/include/linux/phy.h.orig", 7 | "+++ linux-2.6.23/include/linux/phy.h", 8 | "@@ -63,9 +63,10 @@", 9 | "", 10 | "", 11 | "#define PHY_INIT_TIMEOUT\t100000", 12 | "-#define PHY_STATE_TIME\t\t1", 13 | "-#define PHY_FORCE_TIMEOUT\t10", 14 | "-#define PHY_AN_TIMEOUT\t\t10", 15 | "+#define PHY_INIT_TIME (HZ>>3)", 16 | "+#define PHY_STATE_TIME\t\tHZ", 17 | "+#define PHY_FORCE_TIMEOUT\t(10<<3)", 18 | "+#define PHY_AN_TIMEOUT\t\t(10<<3)", 19 | "", 20 | "#define PHY_MAX_ADDR\t32", 21 | "" 22 | ] 23 | ] 24 | ] -------------------------------------------------------------------------------- /tests/data/vmimage/CHANGELOG.rst: -------------------------------------------------------------------------------- 1 | Release notes 2 | ============= 3 | 4 | vNext 5 | ----- 6 | 7 | 8 | Version 21.1.21 9 | --------------- 10 | 11 | - Bump dependencies and use latest typecode and binaries. This is to fix 12 | installation problems on multiple OSes. 13 | 14 | 15 | Version 21.1.21 16 | --------------- 17 | 18 | - Add new [full] extra requires that install all the dependencies 19 | - Fix bug related to commoncode libraries loading 20 | - Improve the extra requirements 21 | - Set minimum version for dependencies 22 | - Improve documentation 23 | 24 | 25 | Version 21.1.15 26 | --------------- 27 | 28 | - Drop support for Python 2 29 | - Use the latest CommonCode and TypeCode libraries 30 | - Add azure-pipelines CI support 31 | 32 | 33 | Version 20.10 34 | ------------- 35 | 36 | - Initial release. 37 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/openssl-0.9.8/patches/Configure.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "openssl-0.9.8k/Configure.orig", 4 | "openssl-0.9.8k/Configure", 5 | [ 6 | "--- openssl-0.9.8k/Configure.orig", 7 | "+++ openssl-0.9.8k/Configure", 8 | "@@ -954,9 +954,9 @@", 9 | "my @fields = split(/\\s*:\\s*/,$table{$target} . \":\" x 30 , -1);", 10 | "my $cc = $fields[$idx_cc];", 11 | "# Allow environment CC to override compiler...", 12 | "-if($ENV{CC}) {", 13 | "- $cc = $ENV{CC};", 14 | "-}", 15 | "+#if($ENV{CC}) {", 16 | "+# $cc = $ENV{CC};", 17 | "+#}", 18 | "my $cflags = $fields[$idx_cflags];", 19 | "my $unistd = $fields[$idx_unistd];", 20 | "my $thread_cflag = $fields[$idx_thread_cflag];" 21 | ] 22 | ] 23 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/jfsutils/patches/largefile.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "jfsutils-1.1.12.orig/libfs/devices.c", 4 | "jfsutils-1.1.12/libfs/devices.c", 5 | [ 6 | "Index: jfsutils-1.1.12/libfs/devices.c", 7 | "===================================================================", 8 | "--- jfsutils-1.1.12.orig/libfs/devices.c", 9 | "+++ jfsutils-1.1.12/libfs/devices.c", 10 | "@@ -15,6 +15,9 @@", 11 | "* along with this program; if not, write to the Free Software", 12 | "* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA", 13 | "*/", 14 | "+", 15 | "+#define _LARGEFILE_SOURCE", 16 | "+", 17 | "#include ", 18 | "#include ", 19 | "#include " 20 | ] 21 | ] 22 | ] -------------------------------------------------------------------------------- /etc/scripts/utils_pypi_supported_tags.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: utils_pypi_supported_tags.py 2 | 3 | type: github 4 | namespace: pypa 5 | name: warehouse 6 | version: 37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d 7 | subpath: warehouse/forklift/legacy.py 8 | 9 | package_url: pkg:github/pypa/warehouse@37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d#warehouse/forklift/legacy.py 10 | 11 | download_url: https://github.com/pypa/warehouse/blob/37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d/warehouse/forklift/legacy.py 12 | copyright: Copyright (c) The warehouse developers 13 | homepage_url: https://warehouse.readthedocs.io 14 | license_expression: apache-2.0 15 | notes: Wheel platform checking copied and heavily modified on 2020-12-24 from 16 | warehouse. This contains the basic functions to check if a wheel file name is 17 | would be supported for uploading to PyPI. 18 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/webkit/opensource/patches/useragent.patch: -------------------------------------------------------------------------------- 1 | --- src/Browser/WebCoreSupport525/FrameLoaderClientEkioh.cpp~ 2009-06-04 17:06:37.000000000 +0200 2 | +++ src/Browser/WebCoreSupport525/FrameLoaderClientEkioh.cpp 2009-10-20 11:27:09.000000000 +0200 3 | @@ -375,7 +375,13 @@ void FrameLoaderClientEkioh::setTitle(co 4 | 5 | String FrameLoaderClientEkioh::userAgent(const KURL&) 6 | { 7 | - return "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/525.27.2 (KHTML, like Gecko)"; 8 | + static const char* useragent = ::getenv("WEBKIT_USERAGENT"); 9 | + if (useragent != NULL) { 10 | + return useragent; 11 | + } 12 | + else { 13 | + return "Motorola KreaTV STB (Linux)/WebKit"; 14 | + } 15 | } 16 | 17 | void FrameLoaderClientEkioh::savePlatformDataToCachedPage(CachedPage*) { notImplemented(); } 18 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/webkit/opensource/patches/speedup.patch: -------------------------------------------------------------------------------- 1 | Index: src/Browser/WebCore/platform/network/ekioh/ResourceHandleManager525.cpp 2 | =================================================================== 3 | --- src.orig/Browser/WebCore/platform/network/ekioh/ResourceHandleManager.cpp 4 | +++ src/Browser/WebCore/platform/network/ekioh/ResourceHandleManager525.cpp 5 | @@ -238,7 +238,8 @@ void ResourceHandleManager::setTimeout() 6 | m_timer.triggerIn(1); 7 | } 8 | else if (m_curlTimeout >= 0) { 9 | - m_timer.triggerIn(m_curlTimeout / 10); // convert ms to cs 10 | + // patched: take half of suggested delay 11 | + m_timer.triggerIn(m_curlTimeout / (10 * 2)); // convert ms to cs 12 | } 13 | else if (m_runningJobs > 0) { 14 | // Bit of a hack to prevent the event loop becoming idle. 15 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/i2c_rate_normal.patch: -------------------------------------------------------------------------------- 1 | diff -u /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/drivers/i2c/busses/i2c-stm.c\~ /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/drivers/i2c/busses/i2c-stm.c 2 | --- linux-2.6.23/drivers/i2c/busses/i2c-stm.c~ 2009-04-07 08:01:15.000000000 +0200 3 | +++ linux-2.6.23/drivers/i2c/busses/i2c-stm.c 2009-04-28 07:42:55.000000000 +0200 4 | @@ -94,7 +94,7 @@ 5 | /* These values WILL produce physical clocks which are slower */ 6 | /* Especially if hardware glitch suppression is enabled */ 7 | /* They should probably be made board dependent? */ 8 | -#define I2C_RATE_NORMAL 100000 9 | +#define I2C_RATE_NORMAL 80000 10 | #define I2C_RATE_FASTMODE 400000 11 | 12 | #define NANOSEC_PER_SEC 1000000000 13 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/libpng-1.2.8/pngconf.h.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "pngconf.h.orig", 4 | "pngconf.h", 5 | [ 6 | "--- pngconf.h.orig", 7 | "+++ pngconf.h", 8 | "@@ -17,6 +17,20 @@", 9 | "#ifndef PNGCONF_H", 10 | "#define PNGCONF_H", 11 | "", 12 | "+#ifndef PNG_NO_WRITE_SUPPORTED", 13 | "+# define PNG_NO_WRITE_SUPPORTED", 14 | "+#endif", 15 | "+", 16 | "+#ifndef PNG_NO_MNG_FEATURES", 17 | "+# define PNG_NO_MNG_FEATURES", 18 | "+#endif", 19 | "+", 20 | "+#ifdef __MIPSEL", 21 | "+# ifndef PNG_NO_FLOATING_POINT_SUPPORTED", 22 | "+# define PNG_NO_FLOATING_POINT_SUPPORTED", 23 | "+# endif", 24 | "+#endif", 25 | "+", 26 | "#define PNG_1_2_X", 27 | "", 28 | "/*" 29 | ] 30 | ] 31 | ] -------------------------------------------------------------------------------- /etc/scripts/test_utils_pypi_supported_tags.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: test_utils_pypi_supported_tags.py 2 | 3 | type: github 4 | namespace: pypa 5 | name: warehouse 6 | version: 37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d 7 | subpath: tests/unit/forklift/test_legacy.py 8 | 9 | package_url: pkg:github/pypa/warehouse@37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d#tests/unit/forklift/test_legacy.py 10 | 11 | download_url: https://github.com/pypa/warehouse/blob/37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d/tests/unit/forklift/test_legacy.py 12 | copyright: Copyright (c) The warehouse developers 13 | homepage_url: https://warehouse.readthedocs.io 14 | license_expression: apache-2.0 15 | notes: Test for wheel platform checking copied and heavily modified on 16 | 2020-12-24 from warehouse. This contains the basic functions to check if a 17 | wheel file name is would be supported for uploading to PyPI. 18 | -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/adduser_3.113+nmu3ubuntu3_all.deb-linux.listing: -------------------------------------------------------------------------------- 1 | 2 | 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 3 | p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64) 4 | 5 | Scanning the drive for archives: 6 | 1 file, 169360 bytes (166 KiB) 7 | 8 | Listing archive: tests/extractcode/data/archive/deb/adduser_3.113+nmu3ubuntu3_all.deb 9 | 10 | -- 11 | Path = tests/extractcode/data/archive/deb/adduser_3.113+nmu3ubuntu3_all.deb 12 | Type = Ar 13 | Physical Size = 169360 14 | SubType = deb 15 | ---- 16 | Path = data.tar.gz 17 | Size = 158441 18 | Modified = 2013-11-07 16:14:58 19 | Mode = -rw-r--r-- 20 | -- 21 | Path = data.tar.gz 22 | Type = gzip 23 | Headers Size = 10 24 | 25 | ---------- 26 | Path = data.tar 27 | Size = 337920 28 | Packed Size = 158441 29 | Modified = 30 | Host OS = Unix 31 | CRC = 04401B9F 32 | 33 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/drivers_net_Makefile.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/drivers/net/Makefile.orig", 4 | "linux-2.6.23/drivers/net/Makefile", 5 | [ 6 | "--- linux-2.6.23/drivers/net/Makefile.orig", 7 | "+++ linux-2.6.23/drivers/net/Makefile", 8 | "@@ -2,6 +2,7 @@", 9 | "# Makefile for the Linux network (ethercard) device drivers.", 10 | "#", 11 | "", 12 | "+obj-$(CONFIG_PHYLIB) += phy/", 13 | "obj-$(CONFIG_E1000) += e1000/", 14 | "obj-$(CONFIG_IBM_EMAC) += ibm_emac/", 15 | "obj-$(CONFIG_IXGB) += ixgb/", 16 | "@@ -79,7 +80,6 @@", 17 | "#", 18 | "", 19 | "obj-$(CONFIG_MII) += mii.o", 20 | "-obj-$(CONFIG_PHYLIB) += phy/", 21 | "", 22 | "obj-$(CONFIG_SUNDANCE) += sundance.o", 23 | "obj-$(CONFIG_HAMACHI) += hamachi.o" 24 | ] 25 | ] 26 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/kernel_resource.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/kernel/resource.c~", 4 | "linux-2.6.23/kernel/resource.c", 5 | [ 6 | "diff -u /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/kernel/resource.c\\~ /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/kernel/resource.c", 7 | "--- linux-2.6.23/kernel/resource.c~", 8 | "+++ linux-2.6.23/kernel/resource.c", 9 | "@@ -589,10 +589,6 @@", 10 | "}", 11 | "", 12 | "write_unlock(&resource_lock);", 13 | "-", 14 | "-\tprintk(KERN_WARNING \"Trying to free nonexistent resource \"", 15 | "-\t\t\"<%016llx-%016llx>\\n\", (unsigned long long)start,", 16 | "-\t\t(unsigned long long)end);", 17 | "}", 18 | "EXPORT_SYMBOL(__release_region);", 19 | "" 20 | ] 21 | ] 22 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/udhcp-0.9.8/patch/dhcpd.h.patch: -------------------------------------------------------------------------------- 1 | --- udhcp-0.9.8.orig/dhcpd.h 2002-09-21 04:36:15.000000000 +0800 2 | +++ udhcp-0.9.8/dhcpd.h 2009-07-20 14:43:13.000000000 +0800 3 | @@ -48,6 +48,7 @@ 4 | #define DHCP_MTU 0x1a 5 | #define DHCP_BROADCAST 0x1c 6 | #define DHCP_NTP_SERVER 0x2a 7 | +#define DHCP_VENDOR_INFORMATION 0x2b 8 | #define DHCP_WINS_SERVER 0x2c 9 | #define DHCP_REQUESTED_IP 0x32 10 | #define DHCP_LEASE_TIME 0x33 11 | @@ -61,6 +62,9 @@ 12 | #define DHCP_T2 0x3b 13 | #define DHCP_VENDOR 0x3c 14 | #define DHCP_CLIENT_ID 0x3d 15 | +#define DHCP_NISPLUS_DOMAIN 0x40 16 | +#define DHCP_USER_CLASS_ID 0x4d 17 | +#define DHCP_VENDOR_SPECIFIC 0x7d 18 | 19 | #define DHCP_END 0xFF 20 | 21 | @@ -79,6 +83,7 @@ 22 | #define DHCPNAK 6 23 | #define DHCPRELEASE 7 24 | #define DHCPINFORM 8 25 | +#define DHCPFORCERENEW 9 26 | 27 | #define BROADCAST_FLAG 0x8000 28 | 29 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/arch_sh_Makefile.patch: -------------------------------------------------------------------------------- 1 | Index: linux-2.6.23/arch/sh/Makefile 2 | =================================================================== 3 | --- linux-2.6.23.orig/arch/sh/Makefile 4 | +++ linux-2.6.23/arch/sh/Makefile 5 | @@ -41,8 +41,13 @@ cflags-$(CONFIG_CPU_SH2) := $(call cc-o 6 | cflags-$(CONFIG_CPU_SH2A) += $(call cc-option,-m2a,) \ 7 | $(call cc-option,-m2a-nofpu,) 8 | cflags-$(CONFIG_CPU_SH3) := $(call cc-option,-m3,) 9 | +ifdef CONFIG_CPU_SUBTYPE_STX7105 10 | +cflags-$(CONFIG_CPU_SH4) := $(call cc-option,-m4-300,) \ 11 | + $(call cc-option,-mno-implicit-fp,-m4-300-nofpu) 12 | +else 13 | cflags-$(CONFIG_CPU_SH4) := $(call cc-option,-m4,) \ 14 | $(call cc-option,-mno-implicit-fp,-m4-nofpu) 15 | +endif 16 | cflags-$(CONFIG_CPU_SH4A) += $(call cc-option,-m4a,) \ 17 | $(call cc-option,-m4a-nofpu,) 18 | cflags-$(CONFIG_CPU_ST40_300) += $(call cc-option,-m4-300,) \ 19 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/cmdlinepart.c.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/drivers/mtd/cmdlinepart.c.orig", 4 | "linux-2.6.23/drivers/mtd/cmdlinepart.c", 5 | [ 6 | "--- linux-2.6.23/drivers/mtd/cmdlinepart.c.orig", 7 | "+++ linux-2.6.23/drivers/mtd/cmdlinepart.c", 8 | "@@ -315,10 +315,14 @@", 9 | "{", 10 | "for(i = 0, offset = 0; i < part->num_parts; i++)", 11 | "{", 12 | "+#if 0", 13 | "if (part->parts[i].offset == OFFSET_CONTINUOUS)", 14 | "part->parts[i].offset = offset;", 15 | "else", 16 | "offset = part->parts[i].offset;", 17 | "+#else", 18 | "+\t\t\t\toffset = part->parts[i].offset;", 19 | "+#endif", 20 | "if (part->parts[i].size == SIZE_REMAINING)", 21 | "part->parts[i].size = master->size - offset;", 22 | "if (offset + part->parts[i].size > master->size)" 23 | ] 24 | ] 25 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/sqlite/patches/permissions.patch: -------------------------------------------------------------------------------- 1 | --- sqlite-3.6.5/src/os_unix.c~ 2008-11-11 19:52:32.000000000 +0100 2 | +++ sqlite-3.6.5/src/os_unix.c 2009-10-01 14:33:55.000000000 +0200 3 | @@ -89,7 +89,7 @@ 4 | ** Default permissions when creating a new file 5 | */ 6 | #ifndef SQLITE_DEFAULT_FILE_PERMISSIONS 7 | -# define SQLITE_DEFAULT_FILE_PERMISSIONS 0644 8 | +# define SQLITE_DEFAULT_FILE_PERMISSIONS 0666 9 | #endif 10 | 11 | /* 12 | @@ -2656,7 +2656,9 @@ static int unixOpen( 13 | if( isExclusive ) oflags |= (O_EXCL|O_NOFOLLOW); 14 | oflags |= (O_LARGEFILE|O_BINARY); 15 | 16 | + mode_t oldMode = umask(0); 17 | fd = open(zName, oflags, isDelete?0600:SQLITE_DEFAULT_FILE_PERMISSIONS); 18 | + umask(oldMode); 19 | if( fd<0 && errno!=EISDIR && isReadWrite && !isExclusive ){ 20 | /* Failed to open the file for read/write access. Try read-only. */ 21 | flags &= ~(SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE); 22 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/init_Kconfig.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23.orig/init/Kconfig", 4 | "linux-2.6.23/init/Kconfig", 5 | [ 6 | "Index: linux-2.6.23/init/Kconfig", 7 | "===================================================================", 8 | "--- linux-2.6.23.orig/init/Kconfig", 9 | "+++ linux-2.6.23/init/Kconfig", 10 | "@@ -62,6 +62,12 @@ config INIT_ENV_ARG_LIMIT", 11 | "variables passed to init from the kernel command line.", 12 | "", 13 | "", 14 | "+config KREATV_FIRMWARE", 15 | "+\tbool \"Configure for use with KreaTV firmware\"", 16 | "+ default n", 17 | "+\thelp", 18 | "+\t This option will configure the kernel with patches for firmware.", 19 | "+", 20 | "config LOCALVERSION", 21 | "string \"Local version - append to kernel release\"", 22 | "help" 23 | ] 24 | ] 25 | ] -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | pushd %~dp0 4 | 5 | REM Command file for Sphinx documentation 6 | 7 | if "%SPHINXBUILD%" == "" ( 8 | set SPHINXBUILD=sphinx-build 9 | ) 10 | set SOURCEDIR=source 11 | set BUILDDIR=build 12 | 13 | if "%1" == "" goto help 14 | 15 | %SPHINXBUILD% >NUL 2>NUL 16 | if errorlevel 9009 ( 17 | echo. 18 | echo.The 'sphinx-build' command was not found. Make sure you have Sphinx 19 | echo.installed, then set the SPHINXBUILD environment variable to point 20 | echo.to the full path of the 'sphinx-build' executable. Alternatively you 21 | echo.may add the Sphinx directory to PATH. 22 | echo. 23 | echo.If you don't have Sphinx installed, grab it from 24 | echo.http://sphinx-doc.org/ 25 | exit /b 1 26 | ) 27 | 28 | %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 29 | goto end 30 | 31 | :help 32 | %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 33 | 34 | :end 35 | popd 36 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/dma-api.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-orig/arch/sh/drivers/dma/dma-api.c 2007-12-06 10:57:14.000000000 +0100 2 | +++ linux/arch/sh/drivers/dma/dma-api.c 2007-12-06 11:21:31.000000000 +0100 3 | @@ -388,8 +388,10 @@ 4 | chan->flags |= DMA_TEI_CAPABLE; 5 | 6 | init_waitqueue_head(&chan->wait_queue); 7 | +#ifdef CONFIG_SYSFS 8 | dma_create_sysfs_files(chan, info); 9 | - } 10 | +#endif 11 | + } 12 | 13 | list_add(&info->list, ®istered_dmac_list); 14 | 15 | @@ -399,12 +401,14 @@ 16 | 17 | void unregister_dmac(struct dma_info *info) 18 | { 19 | +#ifdef CONFIG_SYSFS 20 | unsigned int i; 21 | 22 | for (i = 0; i < info->nr_channels; i++) 23 | dma_remove_sysfs_files(info->channels + i, info); 24 | +#endif 25 | 26 | - if (!(info->flags & DMAC_CHANNELS_CONFIGURED)) 27 | + if (!(info->flags & DMAC_CHANNELS_CONFIGURED)) 28 | kfree(info->channels); 29 | 30 | list_del(&info->list); 31 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/udhcp-0.9.8/patch/options.h.patch: -------------------------------------------------------------------------------- 1 | --- udhcp-0.9.8.orig/options.h 2002-03-23 08:34:03.000000000 +0800 2 | +++ udhcp-0.9.8/options.h 2009-10-19 16:25:33.000000000 +0800 3 | @@ -9,6 +9,7 @@ 4 | enum { 5 | OPTION_IP=1, 6 | OPTION_IP_PAIR, 7 | + OPTION_ROUTE, 8 | OPTION_STRING, 9 | OPTION_BOOLEAN, 10 | OPTION_U8, 11 | @@ -34,7 +35,9 @@ 12 | int end_option(unsigned char *optionptr); 13 | int add_option_string(unsigned char *optionptr, unsigned char *string); 14 | int add_simple_option(unsigned char *optionptr, unsigned char code, u_int32_t data); 15 | +int add_option(unsigned char *optionptr, unsigned char code, u_int8_t* data, u_int8_t datalen); 16 | struct option_set *find_option(struct option_set *opt_list, char code); 17 | void attach_option(struct option_set **opt_list, struct dhcp_option *option, char *buffer, int length); 18 | +int add_user_class_option(unsigned char *optionptr, unsigned char *data); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/unionfs_remove_debug_printouts.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/fs/unionfs/dentry.c~ 2009-04-16 19:27:08.000000000 +0200 2 | +++ linux-2.6.23/fs/unionfs/dentry.c 2009-04-21 08:06:08.000000000 +0200 3 | @@ -273,9 +273,6 @@ 4 | &lower_inode->i_mtime) < 0)) { 5 | if ((lower_inode->i_mtime.tv_sec - 6 | inode->i_mtime.tv_sec) > UNIONFS_MIN_CC_TIME) { 7 | - pr_info("unionfs: new lower inode mtime " 8 | - "(bindex=%d, name=%s)\n", bindex, 9 | - dentry->d_name.name); 10 | show_dinode_times(dentry); 11 | } 12 | return true; 13 | @@ -284,9 +281,6 @@ 14 | &lower_inode->i_ctime) < 0)) { 15 | if ((lower_inode->i_ctime.tv_sec - 16 | inode->i_ctime.tv_sec) > UNIONFS_MIN_CC_TIME) { 17 | - pr_info("unionfs: new lower inode ctime " 18 | - "(bindex=%d, name=%s)\n", bindex, 19 | - dentry->d_name.name); 20 | show_dinode_times(dentry); 21 | } 22 | return true; 23 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/avahi-0.6.25/patches/main.c.patch: -------------------------------------------------------------------------------- 1 | --- avahi-0.6.25/avahi-autoipd/main.c 2009-06-04 16:21:14.000000000 +0530 2 | +++ avahi-0.6.25/avahi-autoipd/main.c 2009-06-04 16:27:01.000000000 +0530 3 | @@ -106,6 +106,12 @@ 4 | #define ETHER_HDR_SIZE (2+2*ETHER_ADDRLEN) 5 | #define ARP_PACKET_SIZE (8+4+4+2*ETHER_ADDRLEN) 6 | 7 | +#ifdef AVAHI_IPDATA_DIR 8 | +#undef AVAHI_IPDATA_DIR 9 | +#endif 10 | +#define AVAHI_IPDATA_DIR "/flash/avahi" 11 | + 12 | + 13 | typedef enum ArpOperation { 14 | ARP_REQUEST = 1, 15 | ARP_RESPONSE = 2 16 | @@ -1643,10 +1649,12 @@ 17 | goto finish; 18 | } 19 | 20 | +#if 0 21 | if (getuid() != 0) { 22 | daemon_log(LOG_ERR, "This program is intended to be run as root."); 23 | goto finish; 24 | } 25 | +#endif 26 | 27 | if ((pid = daemon_pid_file_is_running()) >= 0) { 28 | daemon_log(LOG_ERR, "Daemon already running on PID %u", pid); 29 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/yaffs2-2008.07.15_for_2.6.23.17-yaffs_guts.c.patch: -------------------------------------------------------------------------------- 1 | diff -Naur linux-2.6.23/fs/yaffs2/yaffs_guts.c linux-2.6.23-yaffs2-yaffs_guts.c.patch/fs/yaffs2/yaffs_guts.c 2 | --- linux-2.6.23/fs/yaffs2/yaffs_guts.c 2009-06-01 17:17:58.000000000 +0200 3 | +++ linux-2.6.23-yaffs2-yaffs_guts.c.patch/fs/yaffs2/yaffs_guts.c 2009-06-01 17:16:04.000000000 +0200 4 | @@ -4831,7 +4831,7 @@ 5 | 6 | nToWriteBack = 7 | (nBytesRead > 8 | - (start + n)) ? nBytesRead : (start + n); 9 | + ((int)start + n)) ? nBytesRead : (start + n); 10 | 11 | } else { 12 | nToCopy = dev->nDataBytesPerChunk - start; 13 | @@ -5501,7 +5501,7 @@ 14 | state, sequenceNumber)); 15 | 16 | if (state == YAFFS_BLOCK_STATE_DEAD) { 17 | - T(YAFFS_TRACE_BAD_BLOCKS, 18 | + T(YAFFS_TRACE_SCAN_DEBUG, 19 | (TSTR("block %d is bad" TENDSTR), blk)); 20 | } else if (state == YAFFS_BLOCK_STATE_EMPTY) { 21 | T(YAFFS_TRACE_SCAN_DEBUG, 22 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/webkit/opensource/prepatches/support_parallel_idl_gen.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "src.orig/3rdParty/webkit/Rules.mk", 4 | "src/3rdParty/webkit/Rules.mk", 5 | [ 6 | "Index: src/3rdParty/webkit/Rules.mk", 7 | "===================================================================", 8 | "--- src.orig/3rdParty/webkit/Rules.mk", 9 | "+++ src/3rdParty/webkit/Rules.mk", 10 | "@@ -13,8 +13,8 @@ dir := $(workdir)/WebCore", 11 | "-include $(dir)/Rules.mk", 12 | "", 13 | "define $(postpatch)", 14 | "-(cd $(workdir)/JavaScriptCore && ./make-generated-sources.sh)", 15 | "-(cd $(workdir)/WebCore && ./make-generated-sources.sh)", 16 | "++(cd $(workdir)/JavaScriptCore && ./make-generated-sources.sh)", 17 | "++(cd $(workdir)/WebCore && ./make-generated-sources.sh)", 18 | "endef", 19 | "", 20 | "ifeq ($(MOTO_ST40_OPTIMISATION_HACKS),Y)" 21 | ] 22 | ] 23 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/nand_flash_based_bbt.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/drivers/mtd/nand/stm_nand_flex.c", 4 | "nand_bbt_fix/stm_nand_flex.c", 5 | [ 6 | "--- linux-2.6.23/drivers/mtd/nand/stm_nand_flex.c", 7 | "+++ nand_bbt_fix/stm_nand_flex.c", 8 | "@@ -883,10 +883,9 @@", 9 | "data->chip.options |= NAND_NO_SUBPAGE_WRITE; /* Not tested, disable */", 10 | "data->chip.options |= NAND_NO_AUTOINCR; /* Not tested, disable */", 11 | "", 12 | "-#ifdef CONFIG_STM_NAND_FLEX_BOOTMODESUPPORT", 13 | "-\t/* Force use of BBT when BOOTMODESUPPORT enabled */", 14 | "+\t/* We use Flash based BBT to save boot time */", 15 | "data->chip.options |= NAND_USE_FLASH_BBT;", 16 | "-#endif", 17 | "+", 18 | "/* Callbacks for FLEX mode operation */", 19 | "data->chip.cmd_ctrl = flex_cmd_ctrl;", 20 | "data->chip.select_chip = flex_select_chip;" 21 | ] 22 | ] 23 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/udhcp-0.9.8/patch/packet.h.patch: -------------------------------------------------------------------------------- 1 | --- udhcp-0.9.8/packet.h 2002-04-03 00:49:33.000000000 +0200 2 | +++ sh4-kreatel-linux-gnu/bigpacket/udhcp-0.9.8/packet.h 2007-03-30 13:34:59.000000000 +0200 3 | @@ -4,6 +4,13 @@ 4 | #include 5 | #include 6 | 7 | +#define MIN_OPTIONS_LENGTH 308 8 | +#define MAX_OPTIONS_LENGTH 1232 9 | +#define OUT_OPTIONS_LENGTH MIN_OPTIONS_LENGTH 10 | +#define IN_OPTIONS_LENGTH MAX_OPTIONS_LENGTH 11 | +#define OUT_MESSAGE_LENGTH (sizeof(struct dhcpMessage) - MAX_OPTIONS_LENGTH + MIN_OPTIONS_LENGTH) 12 | +#define OUT_UDP_LENGTH (sizeof(struct udp_dhcp_packet) - MAX_OPTIONS_LENGTH + MIN_OPTIONS_LENGTH) 13 | + 14 | struct dhcpMessage { 15 | u_int8_t op; 16 | u_int8_t htype; 17 | @@ -20,7 +27,7 @@ 18 | u_int8_t sname[64]; 19 | u_int8_t file[128]; 20 | u_int32_t cookie; 21 | - u_int8_t options[308]; /* 312 - cookie */ 22 | + u_int8_t options[MAX_OPTIONS_LENGTH]; 23 | }; 24 | 25 | struct udp_dhcp_packet { 26 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/addrspace.h.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/include/asm-sh/addrspace.h.orig 2008-10-22 16:08:02.000000000 +0200 2 | +++ linux-2.6.23/include/asm-sh/addrspace.h 2008-10-22 15:04:37.000000000 +0200 3 | @@ -31,7 +31,7 @@ 4 | /* Returns the privileged segment base of a given address */ 5 | #define PXSEG(a) (((unsigned long)(a)) & 0xe0000000) 6 | 7 | -#ifndef CONFIG_32BIT 8 | +//#ifndef CONFIG_32BIT 9 | /* Returns the physical address of a PnSEG (n=1,2) address */ 10 | #define PHYSADDR(a) (((unsigned long)(a)) & 0x1fffffff) 11 | 12 | @@ -42,7 +42,7 @@ 13 | #define P2SEGADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P2SEG)) 14 | #define P3SEGADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P3SEG)) 15 | #define P4SEGADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P4SEG)) 16 | -#endif 17 | +//#endif 18 | 19 | /* Check if an address can be reached in 29 bits */ 20 | #define IS_29BIT(a) (((unsigned long)(a)) < 0x20000000) 21 | -------------------------------------------------------------------------------- /tests/data/patch/patches/windows/ether_patch_1.patch: -------------------------------------------------------------------------------- 1 | --- C:/Documents and Settings/jkosin/My Documents/junk/kernel/Copy of linux-2.6.31.5/drivers/net/arm/at91_ether.c Thu Oct 22 18:57:56 2009 2 | +++ C:/Documents and Settings/jkosin/My Documents/junk/kernel/linux-2.6.31.5/drivers/net/arm/at91_ether.c Wed Jan 13 12:05:39 2010 3 | @@ -925,9 +925,6 @@ 4 | It is automatically cleared once read. */ 5 | intstatus = at91_emac_read(AT91_EMAC_ISR); 6 | 7 | - if (intstatus & AT91_EMAC_RCOM) /* Receive complete */ 8 | - at91ether_rx(dev); 9 | - 10 | if (intstatus & AT91_EMAC_TCOM) { /* Transmit complete */ 11 | /* The TCOM bit is set even if the transmission failed. */ 12 | if (intstatus & (AT91_EMAC_TUND | AT91_EMAC_RTRY)) 13 | @@ -940,6 +937,9 @@ 14 | } 15 | netif_wake_queue(dev); 16 | } 17 | + 18 | + if (intstatus & AT91_EMAC_RCOM) /* Receive complete */ 19 | + at91ether_rx(dev); 20 | 21 | /* Work-around for Errata #11 */ 22 | if (intstatus & AT91_EMAC_RBNA) { 23 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/char_build.patch: -------------------------------------------------------------------------------- 1 | Index: linux-2.6.23/drivers/char/Makefile 2 | =================================================================== 3 | --- linux-2.6.23.orig/drivers/char/Makefile 4 | +++ linux-2.6.23/drivers/char/Makefile 5 | @@ -107,6 +107,8 @@ obj-$(CONFIG_DRM) += drm/ 6 | obj-$(CONFIG_PCMCIA) += pcmcia/ 7 | obj-$(CONFIG_IPMI_HANDLER) += ipmi/ 8 | 9 | +obj-$(CONFIG_KBOX_DEVICE) += kboxdev.o 10 | + 11 | obj-$(CONFIG_HANGCHECK_TIMER) += hangcheck-timer.o 12 | obj-$(CONFIG_TCG_TPM) += tpm/ 13 | 14 | Index: linux-2.6.23/drivers/char/Kconfig 15 | =================================================================== 16 | --- linux-2.6.23.orig/drivers/char/Kconfig 17 | +++ linux-2.6.23/drivers/char/Kconfig 18 | @@ -1072,5 +1072,10 @@ config KPROBE_EXAMPLE 19 | depends on KPROBES 20 | #KPROBE-SH 21 | 22 | +config KBOX_DEVICE 23 | + boolean "Kbox device" 24 | + help 25 | + The Kbox device is used by hal to access the HW. 26 | + 27 | endmenu 28 | 29 | -------------------------------------------------------------------------------- /tests/data/patch/patches/libmediainfo-0.7.43.diff: -------------------------------------------------------------------------------- 1 | diff -Naur MediaInfoLib-0.7.43.orig/Project/GNU/Library/libmediainfo-config.in MediaInfoLib-0.7.43/Project/GNU/Library/libmediainfo-config.in 2 | --- MediaInfoLib-0.7.43.orig/Project/GNU/Library/libmediainfo-config.in 2010-09-16 18:36:36.000000000 +0200 3 | +++ MediaInfoLib-0.7.43/Project/GNU/Library/libmediainfo-config.in 2011-04-15 10:55:00.931847415 +0200 4 | @@ -1,14 +1,15 @@ 5 | +#!/bin/sh 6 | if test "$1" = "CXXFLAGS"; then 7 | -echo @MediaInfoLib_CXXFLAGS@ 8 | +/usr/bin/pkg-config --cflags libmediainfo 9 | fi 10 | if test "$1" = "LIBS"; then 11 | -echo @MediaInfoLib_LIBS@ 12 | +/usr/bin/pkg-config --libs libmediainfo 13 | fi 14 | if test "$1" = "LIBS_Static"; then 15 | -echo @MediaInfoLib_LIBS_Static@ 16 | +/usr/bin/pkg-config --variable=Libs_Static libmediainfo 17 | fi 18 | if test "$1" = "Unicode"; then 19 | -echo @MediaInfoLib_Unicode@ 20 | +/usr/bin/pkg-config --variable=Unicode libmediainfo 21 | fi 22 | if test "$1" = "Exists"; then 23 | echo yes 24 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/webkit/opensource/patches/webcore_keyevent.patch: -------------------------------------------------------------------------------- 1 | diff -ur src/3rdParty/webkit/work/WebCore/page/EventHandler.cpp src/3rdParty/webkit/work/WebCore/page/EventHandler.cpp~ 2 | --- src/3rdParty/webkit/work/WebCore/page/EventHandler.cpp 2009-12-08 14:32:54.461258995 +0800 3 | +++ src/3rdParty/webkit/work/WebCore/page/EventHandler.cpp~ 2009-12-08 14:32:54.425258494 +0800 4 | @@ -1592,7 +1592,13 @@ 5 | defaultTabEventHandler(event); 6 | } 7 | if (event->type() == keypressEvent) { 8 | - m_frame->editor()->handleKeyboardEvent(event); 9 | + //filter out TAB key press event to prevent input TAB in text field, because it should be handled as advance focus 10 | + if (event->charCode() != 9 /* TAB's ASCII value */) { 11 | + m_frame->editor()->handleKeyboardEvent(event); 12 | + } 13 | + else { 14 | + event->setDefaultHandled(); 15 | + } 16 | if (event->defaultHandled()) 17 | return; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/busybox/patches/gtrick.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "busybox-1.13.3.orig/editors/awk.c", 4 | "busybox-1.13.3/editors/awk.c", 5 | [ 6 | "Index: busybox-1.13.3/editors/awk.c", 7 | "===================================================================", 8 | "--- busybox-1.13.3.orig/editors/awk.c", 9 | "+++ busybox-1.13.3/editors/awk.c", 10 | "@@ -448,8 +448,13 @@ struct globals2 {", 11 | "/* biggest and least used members go last */", 12 | "tsplitter fsplitter, rsplitter;", 13 | "};", 14 | "+#ifdef __BCM74XX__", 15 | "+struct globals G1;", 16 | "+struct globals2 G;", 17 | "+#else", 18 | "#define G1 (ptr_to_globals[-1])", 19 | "#define G (*(struct globals2 *)ptr_to_globals)", 20 | "+#endif", 21 | "/* For debug. nm --size-sort awk.o | grep -vi ' [tr] ' */", 22 | "/*char G1size[sizeof(G1)]; - 0x74 */", 23 | "/*char Gsize[sizeof(G)]; - 0x1c4 */" 24 | ] 25 | ] 26 | ] -------------------------------------------------------------------------------- /etc/ci/mit.LICENSE: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 2 | 3 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 4 | 5 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm.listing: -------------------------------------------------------------------------------- 1 | 2 | 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 3 | p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64) 4 | 5 | Scanning the drive for archives: 6 | 1 file, 30726 bytes (31 KiB) 7 | 8 | Listing archive: /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/rpm/extract_once/libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm 9 | 10 | -- 11 | Path = /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/rpm/extract_once/libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.rpm 12 | Type = Rpm 13 | Physical Size = 30726 14 | Headers Size = 5154 15 | CPU = i586 16 | Host OS = linux 17 | Created = 2009-09-20 17:17:56 18 | ---- 19 | Path = libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.cpio.lzma 20 | Size = 25572 21 | Created = 2009-09-20 17:17:56 22 | -- 23 | Path = libsqueeze0.2_0-0.2.3-8mdv2010.0.i586.cpio.lzma 24 | Type = lzma 25 | 26 | ---------- 27 | Size = 28 | Packed Size = 29 | Method = LZMA:22 30 | 31 | -------------------------------------------------------------------------------- /.github/workflows/docs-ci.yml: -------------------------------------------------------------------------------- 1 | name: CI Documentation 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-20.04 8 | 9 | strategy: 10 | max-parallel: 4 11 | matrix: 12 | python-version: [3.9] 13 | 14 | steps: 15 | - name: Checkout code 16 | uses: actions/checkout@v3 17 | 18 | - name: Set up Python ${{ matrix.python-version }} 19 | uses: actions/setup-python@v4 20 | with: 21 | python-version: ${{ matrix.python-version }} 22 | 23 | - name: Give permission to run scripts 24 | run: chmod +x ./docs/scripts/doc8_style_check.sh 25 | 26 | - name: Install Dependencies 27 | run: pip install -e .[docs] 28 | 29 | - name: Check Sphinx Documentation build minimally 30 | working-directory: ./docs 31 | run: sphinx-build -E -W source build 32 | 33 | - name: Check for documentation style errors 34 | working-directory: ./docs 35 | run: ./scripts/doc8_style_check.sh 36 | 37 | 38 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/webkit/opensource/patches/webkit_xmlhttprequest_cross_domain.patch: -------------------------------------------------------------------------------- 1 | --- src/3rdParty/webkit/work/WebCore/xml/XMLHttpRequest.cpp 2008-11-26 14:30:13.000000000 +0100 2 | +++ ../tmp/XMLHttpRequest.cpp 2009-08-13 14:20:50.000000000 +0200 3 | @@ -310,18 +310,8 @@ 4 | 5 | bool XMLHttpRequest::urlMatchesDocumentDomain(const KURL& url) const 6 | { 7 | - // a local file can load anything 8 | - if (m_doc->isAllowedToLoadLocalResources()) 9 | - return true; 10 | - 11 | - // but a remote document can only load from the same port on the server 12 | - KURL documentURL = m_doc->url(); 13 | - if (documentURL.protocol().lower() == url.protocol().lower() 14 | - && documentURL.host().lower() == url.host().lower() 15 | - && documentURL.port() == url.port()) 16 | - return true; 17 | - 18 | - return false; 19 | + // always allow loading remote documents 20 | + return true; 21 | } 22 | 23 | void XMLHttpRequest::open(const String& method, const KURL& url, bool async, ExceptionCode& ec) 24 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/pgtable.h.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/include/asm-sh/pgtable.h.orig 2008-10-22 16:08:10.000000000 +0200 2 | +++ linux-2.6.23/include/asm-sh/pgtable.h 2008-10-22 15:04:47.000000000 +0200 3 | @@ -53,7 +53,11 @@ 4 | #define FIRST_USER_ADDRESS 0 5 | 6 | #ifdef CONFIG_32BIT 7 | +#ifdef CONFIG_CPU_SUBTYPE_STX7105 8 | #define PHYS_ADDR_MASK 0xffffffff 9 | +#else 10 | +#define PHYS_ADDR_MASK ( ((ctrl_inl(MMUCR)&MMUCR_SE)==MMUCR_SE) ? 0xffffffff : 0x1fffffff ) 11 | +#endif 12 | #else 13 | #define PHYS_ADDR_MASK 0x1fffffff 14 | #endif 15 | @@ -171,8 +171,11 @@ 16 | #define _PAGE_CLEAR_FLAGS (_PAGE_PROTNONE | _PAGE_ACCESSED | _PAGE_FILE) 17 | #endif 18 | 19 | +#if defined(__ASSEMBLY__) && !defined(CONFIG_CPU_SUBTYPE_STX7105) 20 | +#define _PAGE_FLAGS_HARDWARE_MASK (~(_PAGE_CLEAR_FLAGS)) 21 | +#else 22 | #define _PAGE_FLAGS_HARDWARE_MASK (PHYS_ADDR_MASK & ~(_PAGE_CLEAR_FLAGS)) 23 | - 24 | +#endif 25 | /* Hardware flags, page size encoding */ 26 | #if defined(CONFIG_X2TLB) 27 | # if defined(CONFIG_PAGE_SIZE_4KB) 28 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/curl/patches/ekioh_cookie_fix.patch: -------------------------------------------------------------------------------- 1 | Index: curl-7.19.5/lib/http.c 2 | =================================================================== 3 | --- curl-7.19.5.orig/lib/http.c 4 | +++ curl-7.19.5/lib/http.c 5 | @@ -2537,11 +2537,15 @@ CURLcode Curl_http(struct connectdata *c 6 | if(result) 7 | break; 8 | } 9 | - result = add_bufferf(req_buffer, 10 | + //As Ekioh will manage the cookies itself, disable lib curl's from adding 11 | + //cookies in the HTTP request. Otherwise duplicate cookies will be present 12 | + //in the HTTP request and possibly with wrong values as the Javascript may 13 | + //have changed the cookie values. 14 | + /*result = add_bufferf(req_buffer, 15 | "%s%s=%s", count?"; ":"", 16 | co->name, co->value); 17 | if(result) 18 | - break; 19 | + break;*/ 20 | count++; 21 | } 22 | co = co->next; /* next cookie please */ 23 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/i2c-stm.c.patch2: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23/drivers/i2c/busses/i2c-stm.c.orig 2009-08-10 18:21:30.000000000 +0800 2 | +++ linux-2.6.23/drivers/i2c/busses/i2c-stm.c 2009-08-10 18:21:39.000000000 +0800 3 | @@ -330,6 +330,9 @@ static irqreturn_t iic_state_machine(int 4 | (NULL, "comms_clk"))); 5 | 6 | trsc->start_state = IIC_FSM_START; 7 | + ssc_store32(adap, SSC_CTL, SSC_CTL_SR | SSC_CTL_EN | SSC_CTL_MS | 8 | + SSC_CTL_PO | SSC_CTL_PH | SSC_CTL_HB | 0x8); 9 | + 10 | 11 | /* Enable RX FIFO, enable clock stretch on TX empty */ 12 | ssc_store32(adap, SSC_CTL, SSC_CTL_EN | SSC_CTL_MS | 13 | @@ -693,9 +696,9 @@ static int iic_wait_free_bus(struct iic_ 14 | return 1; 15 | } 16 | 17 | - iic_ssc_reset(adap); 18 | + //iic_ssc_reset(adap); 19 | 20 | - for (idx = 0; idx < 10; ++idx) { 21 | + for (idx = 0; idx < 10/*5*/; ++idx) { 22 | reg = ssc_load32(adap, SSC_STA); 23 | dbg_print("iic_wait_free_bus: status = 0x%08x\n", reg); 24 | if (!(reg & SSC_STA_BUSY)) 25 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/i2c_rate_normal.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "linux-2.6.23/drivers/i2c/busses/i2c-stm.c~", 4 | "linux-2.6.23/drivers/i2c/busses/i2c-stm.c", 5 | [ 6 | "diff -u /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/drivers/i2c/busses/i2c-stm.c\\~ /home/jonsv322/motorola/DEV_7105_erik_rulez_2/base/3pp/linux-st710x/linux-2.6.23/drivers/i2c/busses/i2c-stm.c", 7 | "--- linux-2.6.23/drivers/i2c/busses/i2c-stm.c~", 8 | "+++ linux-2.6.23/drivers/i2c/busses/i2c-stm.c", 9 | "@@ -94,7 +94,7 @@", 10 | "/* These values WILL produce physical clocks which are slower */", 11 | "/* Especially if hardware glitch suppression is enabled */", 12 | "/* They should probably be made board dependent? */", 13 | "-#define I2C_RATE_NORMAL\t\t\t100000", 14 | "+#define I2C_RATE_NORMAL\t\t\t80000", 15 | "#define I2C_RATE_FASTMODE\t\t400000", 16 | "", 17 | "#define NANOSEC_PER_SEC\t\t\t1000000000" 18 | ] 19 | ] 20 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/avahi-0.6.25/patches/configure.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "avahi-0.6.25/configure", 4 | "avahi-0.6.25/configure 2009-05-21 15:55:36.000000000 +0530", 5 | [ 6 | "--- avahi-0.6.25/configure", 7 | "+++ avahi-0.6.25/configure 2009-05-21 15:55:36.000000000 +0530", 8 | "@@ -21673,6 +21673,9 @@", 9 | ";;", 10 | "esac", 11 | "", 12 | "+if test \"$cross_compiling\" != yes; then", 13 | "+", 14 | "+", 15 | "if test -n \"0.35.0\"; then", 16 | "{ $as_echo \"$as_me:$LINENO: checking for intltool >= 0.35.0\" >&5", 17 | "$as_echo_n \"checking for intltool >= 0.35.0... \" >&6; }", 18 | "@@ -21836,7 +21839,7 @@", 19 | "INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'", 20 | "", 21 | "", 22 | "-", 23 | "+fi", 24 | "", 25 | "", 26 | "" 27 | ] 28 | ] 29 | ] -------------------------------------------------------------------------------- /tests/data/sevenzip/weird_names.ar-extract-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | "/COM1__1.txt", 3 | "/COM2__1.txt", 4 | "/COM3_", 5 | "/COM3__1.txt", 6 | "/COM4_", 7 | "/COM5_", 8 | "/COM7_", 9 | "/COM8_", 10 | "/COM9_", 11 | "/COM9_.txt", 12 | "/CON_", 13 | "/CON_.txt", 14 | "/LPT1_", 15 | "/LPT1__1.txt", 16 | "/LPT2_", 17 | "/LPT2__1.txt", 18 | "/LPT3_", 19 | "/LPT3__1.txt", 20 | "/LPT4_", 21 | "/LPT4__1.txt", 22 | "/LPT5_", 23 | "/LPT5__1.txt", 24 | "/LPT6_", 25 | "/LPT7_", 26 | "/LPT7__1.txt", 27 | "/LPT8_", 28 | "/LPT9_", 29 | "/NUL_", 30 | "/NUL_.txt", 31 | "/PRN_.txt", 32 | "/ab_.t_", 33 | "/com1_.txt", 34 | "/com2_.txt", 35 | "/com3_.txt", 36 | "/com4_.txt", 37 | "/com5_.txt", 38 | "/com6_.txt", 39 | "/com7_.txt", 40 | "/com8_.txt", 41 | "/con__1", 42 | "/con__1.txt", 43 | "/lpt1_.txt", 44 | "/lpt2_.txt", 45 | "/lpt3_.txt", 46 | "/lpt4_.txt", 47 | "/lpt5_.txt", 48 | "/lpt6_.txt", 49 | "/lpt7_.txt", 50 | "/lpt8_.txt", 51 | "/lpt9_.txt", 52 | "/nul__1", 53 | "/nul__1.txt", 54 | "/prn__1.txt" 55 | ] -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/webkit/opensource/patches/enable_proxy_setup_log.patch.expected: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | "src.orig/Browser/WebCore/platform/network/ekioh/ResourceHandleManager.cpp", 4 | "src/Browser/WebCore/platform/network/ekioh/ResourceHandleManager525.cpp", 5 | [ 6 | "platform/network/ekioh/ResourceHandleManager.cpp", 7 | "Index: src/Browser/WebCore/platform/network/ekioh/ResourceHandleManager525.cpp", 8 | "===================================================================", 9 | "--- src.orig/Browser/WebCore/platform/network/ekioh/ResourceHandleManager.cpp", 10 | "+++ src/Browser/WebCore/platform/network/ekioh/ResourceHandleManager525.cpp", 11 | "@@ -674,6 +674,7 @@ void ResourceHandleManager::setProxy(con", 12 | "}", 13 | "", 14 | "char* cProxyString = proxyString.toCString();", 15 | "+ fprintf(stderr, \"proxy: '%s'\\n\", cProxyString);", 16 | "curl_easy_setopt(curlHandle, CURLOPT_PROXY, cProxyString);", 17 | "EKString::freeCString(cProxyString);", 18 | "}" 19 | ] 20 | ] 21 | ] -------------------------------------------------------------------------------- /tests/data/sevenzip/listings/demo-spring-boot.sh.listing: -------------------------------------------------------------------------------- 1 | 2 | 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 3 | p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64) 4 | 5 | Scanning the drive for archives: 6 | 1 file, 1499 bytes (2 KiB) 7 | 8 | Listing archive: /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/shar/demo-spring-boot.sh 9 | 10 | -- 11 | Path = /home/pombreda/w421/scancode-toolkit/tests/extractcode/data/archive/shar/demo-spring-boot.sh 12 | Type = zip 13 | ERRORS: 14 | Headers Error 15 | Unconfirmed start of archive 16 | WARNINGS: 17 | Headers Error 18 | There are data after the end of archive 19 | Offset = 716 20 | Physical Size = 30 21 | Tail Size = 753 22 | 23 | ---------- 24 | Path = demo-spring-boot 25 | Folder = - 26 | Size = 2 27 | Packed Size = 0 28 | Modified = 29 | Created = 30 | Accessed = 31 | Attributes = 32 | Encrypted = - 33 | Comment = 34 | CRC = 4ABDBFEF 35 | Method = Deflate 36 | Host OS = FAT 37 | Version = 10 38 | Volume Index = 0 39 | 40 | 41 | Warnings: 1 42 | 43 | Errors: 1 44 | -------------------------------------------------------------------------------- /tests/data/patch/patches/misc/linux-st710x/patches/arch_sh_mm_init.c.patch: -------------------------------------------------------------------------------- 1 | --- linux-2.6.23-orig/arch/sh/mm/init.c 2009-05-18 13:59:28.000000000 +0200 2 | +++ linux-2.6.23/arch/sh/mm/init.c 2009-05-19 13:03:27.000000000 +0200 3 | @@ -206,7 +206,7 @@ 4 | if (max_zone_pfns[ZONE_NORMAL] < low) 5 | max_zone_pfns[ZONE_NORMAL] = low; 6 | 7 | - printk("Node %u: start_pfn = 0x%lx, low = 0x%lx\n", 8 | + printk(KERN_DEBUG "Node %u: start_pfn = 0x%lx, low = 0x%lx\n", 9 | nid, start_pfn, low); 10 | } 11 | 12 | @@ -293,7 +293,7 @@ 13 | free_page(addr); 14 | totalram_pages++; 15 | } 16 | - printk("Freeing unused kernel memory: %ldk freed\n", 17 | + printk(KERN_INFO "Freeing unused kernel memory: %ldk freed\n", 18 | ((unsigned long)&__init_end - 19 | (unsigned long)&__init_begin) >> 10); 20 | } 21 | @@ -308,7 +308,7 @@ 22 | free_page(p); 23 | totalram_pages++; 24 | } 25 | - printk("Freeing initrd memory: %ldk freed\n", (end - start) >> 10); 26 | + printk(KERN_INFO "Freeing initrd memory: %ldk freed\n", (end - start) >> 10); 27 | } 28 | #endif 29 | 30 | --------------------------------------------------------------------------------