#1511 remove deprecated BuildRoot.uploadDir()
Merged 4 years ago by mikem. Opened 4 years ago by tkopecek.
tkopecek/koji issue1455  into  master

file modified
-17
@@ -519,23 +519,6 @@ 

          the hub."""

          return koji.pathinfo.taskrelpath(self.task_id)

  

-     def uploadDir(self, dirpath, suffix=None):

-         """Upload the contents of the given directory to the

-         task output directory on the hub.  If suffix is provided,

-         append '.' + suffix to the filenames, so that successive uploads

-         of the same directory won't overwrite each other, if the files have

-         the same name but different contents."""

-         koji.util.deprecated('BuildRoot.uploadDir method is deprecated and will be removed in 1.19')

-         if not os.path.isdir(dirpath):

-             return

-         uploadpath = self.getUploadPath()

-         for filename in os.listdir(dirpath):

-             filepath = os.path.join(dirpath, filename)

-             if os.stat(filepath).st_size > 0:

-                 if suffix:

-                     filename = '%s.%s' % (filename, suffix)

-                 self.session.uploadWrapper(filepath, uploadpath, filename)

- 

      def init(self):

          rv = self.mock(['--init'])

  

Commit a1fbe6d fixes this pull-request

Pull-Request has been merged by mikem

4 years ago

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

4 years ago