Commit f51c3e76 authored by Bernhard Link's avatar Bernhard Link

make Date: more like official Release files by replacing the old "+0000" with "UTC"

parent ee00a239
2009-01-16
* make Date: more like official Release files by replacing
the old "+0000" with "UTC".
2009-01-15
* add support to generate Valid-Until in Release
......
......@@ -1165,7 +1165,7 @@ retvalue release_prepare(struct release *release, struct distribution *distribut
if( gmt == NULL ) {
return RET_ERROR_OOM;
}
s=strftime(buffer,99,"%a, %d %b %Y %H:%M:%S +0000",gmt);
s=strftime(buffer,99,"%a, %d %b %Y %H:%M:%S UTC",gmt);
if( s == 0 || s >= 99) {
fprintf(stderr,"strftime is doing strange things...\n");
return RET_ERROR;
......@@ -1176,7 +1176,7 @@ retvalue release_prepare(struct release *release, struct distribution *distribut
if( gmt == NULL ) {
return RET_ERROR_OOM;
}
s=strftime(untilbuffer,99,"%a, %d %b %Y %H:%M:%S +0000",gmt);
s=strftime(untilbuffer,99,"%a, %d %b %Y %H:%M:%S UTC",gmt);
if( s == 0 || s >= 99) {
fprintf(stderr,"strftime is doing strange things...\n");
return RET_ERROR;
......
......@@ -493,7 +493,7 @@ EOF
checklog log1 <<EOF
DATESTR remove test1 deb stupid ${FAKEARCHITECTURE} simple-addons 1
EOF
CURDATE="`TZ=GMT LC_ALL=C date +'%a, %d %b %Y %H:%M:%S +0000'`"
CURDATE="`TZ=GMT LC_ALL=C date +'%a, %d %b %Y %H:%M:%S UTC'`"
printf '%%g/^Date:/s/Date: .*/Date: normalized/\n%%g/gz$/s/^ 163be0a88c70ca629fd516dbaadad96a / 7029066c27ac6f5ef18d660d5741979a /\nw\nq\n' | ed -s dists/test1/Release
dodiff dists/test1/Release.expected dists/test1/Release || exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment