From ad77e695dc27fd1efc9d32252d6cdd345bd8eba1 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Mon, 5 Mar 2018 16:35:43 -0800 Subject: [PATCH] local repo: instantiate repo after creating the directory DNF seems to ignore an uninitialized repo, but Yum does not. To fix, make sure to run createrepo immediately after creating the local repo directory. Signed-off-by: Patrick McCarty --- Makefile.common | 1 + Makefile.toplevel | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile.common b/Makefile.common index 8bb820e..3e4057e 100644 --- a/Makefile.common +++ b/Makefile.common @@ -287,6 +287,7 @@ logcheck: $(TOPLVL)/repo: @echo "Creating local RPM repository $(TOPLVL)/repo" mkdir $(TOPLVL)/repo + $(MAKE) localrepocreate #help repoadd: Adds locally-built RPMs for this package to the local RPM #help repository. If this repository does not yet exist, it is created and diff --git a/Makefile.toplevel b/Makefile.toplevel index 367ff6b..52c3fea 100644 --- a/Makefile.toplevel +++ b/Makefile.toplevel @@ -214,6 +214,7 @@ autospecnew: $(TOPLVL)/repo: @echo "Creating local RPM repository $(TOPLVL)/repo" mkdir $(TOPLVL)/repo + $(MAKE) localrepocreate #help repoenable: Enables the local RPM repository for use with Yum/DNF and #help Mock. If this repository does not yet exist, it is created.