From d97ae540fbf3d1f3dceaa8f7f2796767b4aec00a Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 14 Nov 2019 12:46:28 -0800 Subject: [PATCH] Allow patch files as archives (for manual patching). --- autospec/specfiles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autospec/specfiles.py b/autospec/specfiles.py index 2e0c84a..5551262 100644 --- a/autospec/specfiles.py +++ b/autospec/specfiles.py @@ -441,6 +441,9 @@ class Specfile(object): # Also JAR files if archive.endswith('.jar'): continue + # Patch files + if archive.endswith('.patch'): + continue # Handle various archive types extract_cmd = 'tar xf {}' if archive.endswith('.zip'):