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: 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    112   
   113    113   if [ ! -e "${pkgfile}" ]; then
   114    114   	echo "Invalid package." >&2
   115    115   
   116    116   	exit 1
   117    117   fi
   118    118   
   119         -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)"
          119  +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)"
          120  +if [ -z "${pkgdate}" ]; then
          121  +	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)"
          122  +fi
   120    123   
   121    124   . "${pkgfile}"
   122    125   
   123    126   archivedir="$(pwd)/ARCHIVE"
   124    127   workdir="workdir-$$${RANDOM}${RANDOM}${RANDOM}"
   125    128   srcfile="${archivedir}/${pkg}"
   126    129   mkdir "${archivedir}" >/dev/null 2>/dev/null