File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ apt_filesize() {
76
76
# Setup the repository for the distro named in the first argument,
77
77
# including all packages read from `stdin`.
78
78
apt_cache () {
79
+ REL_DATE=" $( LC_ALL=en_US date ' +%a, %d %b %Y %H:%M:%S %Z' ) "
80
+ VALID_DATE=" Fri, 31 Nov 2038 00:00:00 JST"
79
81
DIST=" $1 "
80
82
SUITE=" ${SUITE:- $DIST } "
81
83
@@ -129,6 +131,8 @@ Component: $COMP
129
131
Origin: $ORIGIN
130
132
Label: $LABEL
131
133
Architecture: $ARCH
134
+ Date: $REL_DATE
135
+ Valid-Until: $VALID_DATE
132
136
EOF
133
137
gzip -c " $DISTCACHE /$COMP /binary-$ARCH /Packages" \
134
138
> " $DISTCACHE /$COMP /binary-$ARCH /Packages.gz"
@@ -141,6 +145,8 @@ Component: $COMP
141
145
Origin: $ORIGIN
142
146
Label: $LABEL
143
147
Architecture: source
148
+ Date: $REL_DATE
149
+ Valid-Until: $VALID_DATE
144
150
EOF
145
151
gzip -c " $DISTCACHE /$COMP /source/Sources" \
146
152
> " $DISTCACHE /$COMP /source/Sources.gz"
@@ -158,6 +164,8 @@ Suite: $SUITE
158
164
Codename: $DIST
159
165
Components: $( echo " $COMPS " | tr \\ n " " )
160
166
Architectures: $ARCHS
167
+ Date: $REL_DATE
168
+ Valid-Until: $VALID_DATE
161
169
EOF
162
170
163
171
# Finish the top-level `Release` file with references and
You can’t perform that action at this time.
0 commit comments