85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
-
-
+
+
|
echo "${type},${stat_data},${extra_data},${filename}"
fi
done
}
cd "${pkgsdir}" || exit 1
for package in *; do
packagelistfile="${appfsdir}/sha1/${RANDOM}${RANDOM}${RANDOM}${RANDOM}${RANDOM}.tmp"
packagelistfile="${appfsdir}/sha1/${RANDOM}${RANDOM}${RANDOM}${RANDOM}${RANDOM}.tmp"
for package in *; do
(
cd "${package}" || exit 1
for os_cpuArch in *; do
os="$(echo "${os_cpuArch}" | cut -f 1 -d '-')"
cpuArch="$(echo "${os_cpuArch}" | cut -f 2- -d '-')"
|
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
-
-
-
-
+
+
+
+
+
-
+
-
|
isLatest='0'
echo "${package},${version},${os},${cpuArch},${manifestfile_hash},${isLatest}"
done
)
done
) > "${packagelistfile}"
packagelistfile_hash="$(sha1 "${packagelistfile}")"
mv "${packagelistfile}" "${appfsdir}/sha1/${packagelistfile_hash}"
)
done > "${packagelistfile}"
packagelistfile_hash="$(sha1 "${packagelistfile}")"
mv "${packagelistfile}" "${appfsdir}/sha1/${packagelistfile_hash}"
echo "${packagelistfile_hash},sha1" > "${appfsdir}/index"
echo "${packagelistfile_hash},sha1" > "${appfsdir}/index"
done
|