#2252 rpmbuild: build SRPM from DistGit even with missing sources
Merged 2 years ago by praiskup. Opened 2 years ago by praiskup.
Unknown source no-download-distgit  into  main

@@ -228,7 +228,8 @@

      name = specfile[:-5]

      sources_file = distgit_config["sources_file"].format(name=name)

      if not os.path.exists(sources_file):

-         raise RuntimeError("{0} file not found".format(sources_file))

+         logging.info("'%s' file not found, download skipped", sources_file)

+         return

  

      logging.info("Reading sources specification file: %s", sources_file)

      with open(sources_file, 'r') as sfd:

Resolves: rhbz#2108401

Build succeeded.

rebased onto f9383a2

2 years ago

Commit 990aeea fixes this pull-request

Pull-Request has been merged by praiskup

2 years ago

Build succeeded.

Metadata