Continue working on making a spec file

1. Add a new changelog 'generator' for rpm spec files to use
2. Get spec file generation working!
3. Add verify that checks if setup.py exists
This commit is contained in:
Joshua Harlow
2012-08-27 13:43:50 -07:00
parent 83330ed10d
commit 9be96448f0
6 changed files with 247 additions and 78 deletions

View File

@@ -210,7 +210,7 @@ def hostname():
try:
return socket.gethostname()
except socket.error:
return None
return 'localhost'
def isuseable(path, options=os.W_OK | os.R_OK | os.X_OK):
@@ -641,6 +641,13 @@ def copy(src, dst):
return dst
def copytree(src, dst):
LOG.debug("Copying full tree: %r => %r" % (src, dst))
if not is_dry_run():
shutil.copytree(src, dst)
return dst
def move(src, dst):
LOG.debug("Moving: %r => %r" % (src, dst))
if not is_dry_run():