pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

git-package: Create cache for the first checkout



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Aug 9 01:17:18 2018 +0200
Changeset:	606e6806515b53ff68ba025d2af2618b402b7e15

Modified Files:
	mk/git-package.mk

Log Message:
git-package: Create cache for the first checkout

Newly fetched packages were never cached.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=606e6806515b53ff68ba025d2af2618b402b7e15

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mk/git-package.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diffs:
diff --git a/mk/git-package.mk b/mk/git-package.mk
index 2829bc892a..a1bc778ac6 100644
--- a/mk/git-package.mk
+++ b/mk/git-package.mk
@@ -214,7 +214,7 @@ _GIT_CMD.checkout.${repo}= \
 
 # Create the cached archive from the checked out repository
 _GIT_CMD.create_archive.${repo}= \
-	if [ "$${rev_before-unknown}" != "$${rev_after-unknown}" ]; then \
+	if [ ! -f "$$archive" -o  "$${rev_before-unknown}" != "$${rev_after-unknown}" ]; then \
 	  ${STEP_MSG} "Creating cached Git archive $${archive\#\#*/}.";	\
 	  ${MKDIR} "$${archive%/*}";					\
 	  pax -w "$$extractdir" | gzip > "$$archive.tmp";		\


Home | Main Index | Thread Index | Old Index