pkgsrc-WIP-changes archive

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

import-package.sh: make imports to pkgsrc proper work again



Module Name:	pkgsrc-wip
Committed By:	Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By:	tnn
Date:		Sun Sep 27 13:22:27 2015 +0200
Changeset:	226495839088dce9417ff22709a4840639f181b4

Modified Files:
	import-package.sh

Log Message:
import-package.sh: make imports to pkgsrc proper work again

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

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

diffstat:
 import-package.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diffs:
diff --git a/import-package.sh b/import-package.sh
index 053937b..527117f 100644
--- a/import-package.sh
+++ b/import-package.sh
@@ -127,7 +127,8 @@ CLEANUP="${CLEANUP} ${ADDLIST}"
 	if [ "${SCM}" = "GIT" ]; then
 		find ${PACKAGE} -type f -print
 	else
-		find ${PACKAGE} \( -type f -o -type d \) -print
+		find ${PACKAGE} \( -type d \) -print | sed 's,$,/,'
+		find ${PACKAGE} \( -type f \) -print
 	fi
 ) | sed -e '/^\./d' -e '/\/CVS/d' -e '/[^-_,./a-zA-Z0-9]/d' | sort > ${ADDLIST}
 sed "s|^|${SCM}: will add: ${CATEGORY}/|" ${ADDLIST} >> ${MSG}


Home | Main Index | Thread Index | Old Index