#1958 fix potentially undeclared variable error
Merged 4 years ago by tkopecek. Opened 4 years ago by tkopecek.
tkopecek/koji issue1957  into  master

file modified
+1 -1
@@ -1676,8 +1676,8 @@ 

      if topurl:

          url = "%s/%s" % (topurl, relpath)

          fo = tempfile.TemporaryFile(dir=tempdir)

+         resp = requests.get(url, stream=True)

          try:

-             resp = requests.get(url, stream=True)

              for chunk in resp.iter_content(chunk_size=8192):

                  fo.write(chunk)

          finally:

file modified
+1 -1
@@ -478,8 +478,8 @@ 

                  return fn

              self.logger.debug("Downloading %s", relpath)

              url = "%s/%s" % (self.options.topurl, relpath)

+             resp = requests.get(url, stream=True)

              try:

-                 resp = requests.get(url, stream=True)

                  if not os.path.exists(os.path.dirname(fn)):

                      os.makedirs(os.path.dirname(fn))

                  with open(fn, 'wb') as fdst:

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

4 years ago

requests.get in koji/tasks.py isn't updated

rebased onto 2870ac424a18ab9a4bb8def8a0ced13a965f4775

4 years ago

rebased onto 43b128b

4 years ago

Updated due to #1993 (and pulled that in 1.20.1)

pretty please pagure-ci rebuild

4 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

4 years ago

Commit 73df118 fixes this pull-request

Pull-Request has been merged by tkopecek

4 years ago