Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 758233f

Browse files
author
Lee Shombert
committed
Fix the sqlite METADATA template
The metadata template is supposed to generate year, month, and day. However, the date format characters were wrong. This uses the correct format characters and remotes zero-padding, so, for instance, day 1 of the month is "1" and not "01". Fixed the 3.44.3 METADATA file by hand. Tested with a new sqlite release and verified that lint did not detect errors in the METADATA file. Flag: EXEMPT bug-fix Bug: 397436943 Test: presumbit Change-Id: I2b94a36866d8e5e09837a5f35c509da92ca31f2c
1 parent 92580f9 commit 758233f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

UPDATE-SOURCE.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ echo "# Generating metadata ..."
138138
export SQLITE_URL=${src_tarball_url}
139139
export SQLITE_VERSION=$(prettify_release ${sqlite_release})
140140
export YEAR=$(date +%Y)
141-
export MONTH=$(date +%M)
142-
export DAY=$(date +%D)
141+
export MONTH=$(date +%-m)
142+
export DAY=$(date +%-d)
143143
envsubst < README.version.TEMPLATE > ${dist_dir}/README.version
144144
envsubst < METADATA.TEMPLATE > ${dist_dir}/METADATA
145145
)

dist/sqlite-autoconf-3440300/METADATA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ third_party {
1212
value: "https://sqlite.org/src/tarball/d68fb8b5/SQLite-d68fb8b5.tar.gz"
1313
}
1414
version: "3.44.3"
15-
last_upgrade_date { year: 2024 month: 44 day: 03/25/24 }
15+
last_upgrade_date { year: 2024 month: 3 day: 25 }
1616
license_type: NOTICE
1717

1818
security: {

0 commit comments

Comments
 (0)