Don't avoid egg-info quite so often

There are times when we need to run egg-info more frequently than we
had before.

Change-Id: Ie6ec39f7db28ec7807f1a74bc724f0781380c6cc
Closes-Bug: 1433681
This commit is contained in:
Monty Taylor
2015-03-18 13:03:45 -04:00
parent e5e13df52e
commit b692905a6c

View File

@@ -436,9 +436,13 @@ class LocalEggInfo(egg_info.egg_info):
If we are in an sdist command, then we always want to update If we are in an sdist command, then we always want to update
SOURCES.txt. If we are not in an sdist command, then it doesn't SOURCES.txt. If we are not in an sdist command, then it doesn't
matter one flip, and is actually destructive. matter one flip, and is actually destructive.
However, if we're in a git context, it's always the right thing to do
to recreate SOURCES.txt
""" """
manifest_filename = os.path.join(self.egg_info, "SOURCES.txt") manifest_filename = os.path.join(self.egg_info, "SOURCES.txt")
if not os.path.exists(manifest_filename) or 'sdist' in sys.argv: if (not os.path.exists(manifest_filename) or
os.path.exists('.git') or
'sdist' in sys.argv):
log.info("[pbr] Processing SOURCES.txt") log.info("[pbr] Processing SOURCES.txt")
mm = LocalManifestMaker(self.distribution) mm = LocalManifestMaker(self.distribution)
mm.manifest = manifest_filename mm.manifest = manifest_filename