[PATCH 18/21] Drop some useless comments
Mathieu Bridon
bochecha at fedoraproject.org
Wed May 6 11:53:14 UTC 2015
From: Mathieu Bridon <bochecha at daitauha.fr>
Each of these actions is entirely obvious to anybody reading the source
code, so these 3 comments are nothing but noise, in a file which is
already way too long.
---
src/pyrpkg/__init__.py | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/pyrpkg/__init__.py b/src/pyrpkg/__init__.py
index bb0ff3f..23b67a7 100644
--- a/src/pyrpkg/__init__.py
+++ b/src/pyrpkg/__init__.py
@@ -2196,8 +2196,6 @@ class Commands(object):
sourcesf = SourcesFile(self.sources_filename, self.source_entry_type,
replace=replace)
-
- # Will add new sources to .gitignore if they are not already there.
gitignore = GitIgnore(os.path.join(self.path, '.gitignore'))
uploaded = []
@@ -2229,7 +2227,6 @@ class Commands(object):
if self.lookasidecache.remote_file_exists(
self.module_name, file_basename, file_hash):
- # Already uploaded, skip it:
self.log.info("File already uploaded: %s" % file_basename)
else:
@@ -2240,8 +2237,6 @@ class Commands(object):
uploaded.append(file_basename)
sourcesf.write()
-
- # Write .gitignore with the new sources if anything changed:
gitignore.write()
self.repo.index.add(['sources', '.gitignore'])
--
2.1.0
More information about the rel-eng
mailing list