Skip to content

Commit

Permalink
Added more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Sep 22, 2024
1 parent b046ef2 commit 4323d3d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions library/prolog_pack.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2918,6 +2918,17 @@
register_downloads(Infos, [do_publish(Pack)|Options1]).
publish_download(_Infos, _Options).

%! download_data(+Info, -Data) is semidet.
%
% If we downloaded and installed Info, unify Data with the information
% that we share with the pack registry. That is a term
%
% download(URL, Hash, Metadata).
%
% Where URL is location of the GIT repository or URL of the download
% archive. Hash is either the GIT commit hash or the SHA1 of the
% archive file.

download_data(Info, Data),
Info.get(git) == true => % Git clone
Data = download(URL, Hash, Metadata),
Expand Down

0 comments on commit 4323d3d

Please sign in to comment.