Package: ddgr / 1.9-2

Delete-unnecessary-copyfile-function-to-avoid-upstream-ch.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: =?utf-8?b?IlNaIExpbiAo5p6X5LiK5pm6KSI=?= <szlin@debian.org>
Date: Tue, 28 Jul 2020 11:42:47 +0800
Subject: Delete unnecessary copyfile function to avoid upstream changes

---
 setup.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/setup.py b/setup.py
index 31c8521..c9d7d45 100644
--- a/setup.py
+++ b/setup.py
@@ -5,10 +5,7 @@ import os.path
 import setuptools
 import shutil
 
-if os.path.isfile('ddgr'):
-    shutil.copyfile('ddgr', 'ddgr.py')
-
-with open('ddgr.py', encoding='utf-8') as fp:
+with open('ddgr', encoding='utf-8') as fp:
     version = re.search(r'_VERSION_ = \'(.*?)\'', fp.read()).group(1)
 
 with open('README.md', encoding='utf-8') as f: