Skip to content

Commit

Permalink
Merge pull request #5624 from dra27/full-archive
Browse files Browse the repository at this point in the history
Ensure all archives are retrieved in `make cache-archives`
  • Loading branch information
rjbou authored Jul 24, 2024
2 parents 52575bc + b55b38a commit 66f7251
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ New option/command/subcommand are prefixed with ◈.
*

## Infrastructure
*
* Ensure the full archive includes the 0install sources [#5624 @dra27]

## Admin
*
Expand Down
11 changes: 8 additions & 3 deletions src_ext/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,18 @@ endef

SRC_EXTS = cppo base64 extlib re cmdliner ocamlgraph cudf dose3 opam-file-format result seq stdlib-shims
PKG_EXTS = $(SRC_EXTS) dune-local findlib ocamlbuild topkg mccs
ALL_EXTS = $(SRC_EXTS) $(PKG_EXTS) ocaml flexdll

MCCS_SRCS = mccs
ALL_EXTS += $(MCCS_SRCS)
ifeq ($(MCCS_ENABLED),true)
SRC_EXTS := $(SRC_EXTS) mccs
SRC_EXTS += $(MCCS_SRCS)
endif

0INSTALL_SRCS = opam-0install-cudf 0install-solver
ALL_EXTS += $(0INSTALL_SRCS)
ifeq ($(OPAM_0INSTALL_SOLVER_ENABLED),true)
SRC_EXTS := $(SRC_EXTS) opam-0install-cudf 0install-solver
SRC_EXTS += $(0INSTALL_SRCS)
endif

include Makefile.sources
Expand Down Expand Up @@ -141,7 +146,7 @@ archives: $(SRC_EXTS:=.download)
archives-pkg: $(PKG_EXTS:=.pkgdownload)
@

cache-archives: $(SRC_EXTS:=.cache) $(PKG_EXTS:=.pkgcache) ocaml.cache flexdll.cache
cache-archives: $(ALL_EXTS:=.cache) $(ALL_EXTS:=.pkgcache)
@

has-archives: $(addprefix archives/, $(notdir $(URL_ocaml)) $(notdir $(URL_flexdll)) $(ARCHIVES) $(filter-out $(ARCHIVES), $(foreach pkg,$(PKG_EXTS), $(notdir $(URL_PKG_$(pkg))))))
Expand Down

0 comments on commit 66f7251

Please sign in to comment.