[PATCH 02/21] Remove dead code
Mathieu Bridon
bochecha at fedoraproject.org
Wed May 6 11:52:58 UTC 2015
From: Mathieu Bridon <bochecha at daitauha.fr>
Nothing is using this method.
I checked in the following pyrpkg-based tools:
- rpkg
- fedpkg
- rhpkg
- nbpkg
- centpkg
- rdopkg
---
src/pyrpkg/__init__.py | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/src/pyrpkg/__init__.py b/src/pyrpkg/__init__.py
index 6538b76..910bb2e 100644
--- a/src/pyrpkg/__init__.py
+++ b/src/pyrpkg/__init__.py
@@ -1706,24 +1706,6 @@ class Commands(object):
raise rpkgError("Error checking for %s at: %s"
% (filename, self.lookaside_cgi))
- def upload_file(self, pkg_name, filepath, md5sum):
- """ Upload a file to the lookaside cache. """
-
- # Setup the POST data for lookaside CGI request. The use of
- # 'file' here appears to trigger the actual upload:
- post_data = [('name', pkg_name),
- ('md5sum', md5sum),
- ('file', (pycurl.FORM_FILE, filepath))]
-
- curl = self._create_curl()
- curl.setopt(pycurl.HTTPPOST, post_data)
-
- try:
- curl.perform()
- except:
- raise rpkgError('Lookaside failure.')
- curl.close()
-
def build(self, skip_tag=False, scratch=False, background=False,
url=None, chain=None, arches=None, sets=False, nvr_check=True):
"""Initiate a build of the module. Available options are:
--
2.1.0
More information about the rel-eng
mailing list