#2226 rpmbuild: drop an unused extract_srpm method
Merged 2 months ago by praiskup. Opened 2 months ago by praiskup.
copr/ praiskup/copr extract_srpm  into  main

@@ -185,22 +185,6 @@ 

      return datetime.datetime.now().strftime('%s.%f')

  

  

- def extract_srpm(srpm_path, destination):

-     """

-     Extracts srpm content to the target directory.

- 

-     raises: CheckOutputError

-     """

-     cwd = os.getcwd()

-     os.chdir(destination)

-     log.debug('Extracting srpm {0} to {1}'.format(srpm_path, destination))

-     try:

-         cmd = "rpm2cpio {path} | cpio -idmv".format(path=pipes.quote(srpm_path))

-         subprocess.check_call(cmd, shell=True)

-     finally:

-         os.chdir(cwd)

- 

- 

  def build_srpm(srcdir, destdir):

      cmd = [

          'rpmbuild', '-bs',

If we ever need this in the future, we could use the extract_srpm method
from the python3-rpkg project.

rebased onto ac6dc34

2 months ago

Build succeeded.

Commit d3ebcae fixes this pull-request

Pull-Request has been merged by praiskup

2 months ago
Metadata