remove tabs and trailing whitespace. add whitespace between methods

This commit is contained in:
jesus m. rodriguez 2012-09-20 10:09:05 -04:00
parent d601601f3d
commit c1a4eb0a62

View file

@ -301,6 +301,7 @@ class RsyncReleaser(Releaser):
self.rsync_location = rsync_location self.rsync_location = rsync_location
output = run_command("rsync -rlvz %s %s" % (rsync_location, self.temp_dir)) output = run_command("rsync -rlvz %s %s" % (rsync_location, self.temp_dir))
debug(output) debug(output)
def rsync_to_remote(self): def rsync_to_remote(self):
print("rsync: %s -> %s" % (self.rsync_location, self.rsync_location)) print("rsync: %s -> %s" % (self.rsync_location, self.rsync_location))
os.chdir(self.temp_dir) os.chdir(self.temp_dir)
@ -318,6 +319,7 @@ class RsyncReleaser(Releaser):
rmtree(self.temp_dir) rmtree(self.temp_dir)
else: else:
print("WARNING: leaving %s (--no-cleanup)" % self.temp_dir) print("WARNING: leaving %s (--no-cleanup)" % self.temp_dir)
def copy_files_to_temp_dir(self): def copy_files_to_temp_dir(self):
os.chdir(self.temp_dir) os.chdir(self.temp_dir)
@ -334,9 +336,11 @@ class RsyncReleaser(Releaser):
if artifact_type in self.filetypes: if artifact_type in self.filetypes:
copy(artifact, self.temp_dir) copy(artifact, self.temp_dir)
print("copy: %s > %s" % (artifact, self.temp_dir)) print("copy: %s > %s" % (artifact, self.temp_dir))
def process_packages(self): def process_packages(self):
""" no-op. This will be overloaded by a subclass if needed. """ """ no-op. This will be overloaded by a subclass if needed. """
pass pass
def cleanup(self): def cleanup(self):
""" No-op, we clean up during self.release() """ """ No-op, we clean up during self.release() """
pass pass
@ -377,6 +381,7 @@ class YumRepoReleaser(RsyncReleaser):
output = run_command(self.createrepo_command) output = run_command(self.createrepo_command)
debug(output) debug(output)
self.prune_other_versions() self.prune_other_versions()
def prune_other_versions(self): def prune_other_versions(self):
""" """
Cleanout any other version of the package we just built. Cleanout any other version of the package we just built.