Check-in [77faad55ab]
Overview
Comment:Updated to use package data from Fossil, which is more reliable
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | packages
Files: files | file ages | folders
SHA1: 77faad55ab7f97e1516c199881db0a7633386f67
User & Date: rkeene on 2014-11-03 23:49:03
Other Links: branch diff | manifest | tags
Context
2014-11-04
00:45
Added support for an archive format as well as fixing date format for Fossil files check-in: 36a7e12995 user: rkeene tags: packages
2014-11-03
23:49
Updated to use package data from Fossil, which is more reliable check-in: 77faad55ab user: rkeene tags: packages
23:35
Added zlib package and support for checking hash and storing archive check-in: 9f4f082fef user: rkeene tags: packages
Changes

Modified build from [4cb097f703] to [dcf6e62dd7].

112
113
114
115
116
117
118


119


120
121
122
123
124
125
126
112
113
114
115
116
117
118
119
120

121
122
123
124
125
126
127
128
129







+
+
-
+
+








if [ ! -e "${pkgfile}" ]; then
	echo "Invalid package." >&2

	exit 1
fi

pkgdate="$(for artifact in $(find "${pkgdir}" -type f -print0 | xargs -n 1 -0 fossil finfo --limit 1 --width 0 2>/dev/null | grep '^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] ' | sed 's@^[^ ]* \[@@;s@\].*@@' | sort -u); do fossil info "${artifact}" | awk '/^uuid:/{ print $3 "T" $4 }' | sed 's@[-:]@@g;s@..$@\.&@'; done | sort -n | tail -n 1)"
if [ -z "${pkgdate}" ]; then
pkgdate="$(find "${pkgdir}" -type f -printf '%TY%Tm%Td%TH%TM.%TS\n' 2>/dev/null | cut -f 1-2 -d '.' | sort -n | tail -n 1)"
	pkgdate="$(find "${pkgdir}" -type f -printf '%TY%Tm%Td%TH%TM.%TS\n' 2>/dev/null | cut -f 1-2 -d '.' | sort -n | tail -n 1)"
fi

. "${pkgfile}"

archivedir="$(pwd)/ARCHIVE"
workdir="workdir-$$${RANDOM}${RANDOM}${RANDOM}"
srcfile="${archivedir}/${pkg}"
mkdir "${archivedir}" >/dev/null 2>/dev/null