#1495 Set skip_if_unavailable=True on localrepo to avoid module-build-macros failures for local builds
Closed 4 years ago by mprahl. Opened 4 years ago by mprahl.

@@ -108,7 +108,13 @@ 

              os.makedirs(self.configdir)

  

          # Generate path to mock config and add local repository there.

-         self._add_repo("localrepo", "file://" + self.resultsdir, "metadata_expire=1\n")

+         # Set skip_if_unavailable=True since the repo isn't available until after

+         # module-build-macros is built.

+         self._add_repo(

+             "localrepo",

+             "file://" + self.resultsdir,

+             "metadata_expire=1\nskip_if_unavailable=True\n",

+         )

  

          # Remove old files from the previous build of this tag but only

          # before the first build is done, otherwise we would remove files

When module-build-macros is built, the localrepo hasn't been generated yet. This has caused errors on certain systems.

I'll reach out to the user to see if this fixes their issue before merging it.

Pull-Request has been closed by mprahl

4 years ago