File: no-SOURCES.txt-in-egg-ingo.diff

package info (click to toggle)
python-setuptools 33.1.1-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,848 kB
  • ctags: 3,409
  • sloc: python: 19,087; ansic: 195; makefile: 97; xml: 14
file content (14 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: b/setuptools/command/install_egg_info.py
===================================================================
--- a/setuptools/command/install_egg_info.py
+++ b/setuptools/command/install_egg_info.py
@@ -72,6 +72,9 @@ class install_egg_info(namespaces.Instal
             for skip in '.svn/', 'CVS/':
                 if src.startswith(skip) or '/' + skip in src:
                     return None
+            if self.install_layout and self.install_layout in ['deb'] and src.startswith('SOURCES.txt'):
+                log.info("Skipping SOURCES.txt")
+                return None
             self.outputs.append(dst)
             log.debug("Copying %s to %s", src, dst)
             return dst