add: always use UTC for virtual package versions
parent
f8d5aa58f9
commit
800488a1ef
|
@ -90,7 +90,7 @@ static struct apk_package *create_virtual_package(struct apk_database *db, struc
|
||||||
time_t now = apk_time();
|
time_t now = apk_time();
|
||||||
pid_t pid = getpid();
|
pid_t pid = getpid();
|
||||||
|
|
||||||
localtime_r(&now, &tm);
|
gmtime_r(&now, &tm);
|
||||||
strftime(ver, sizeof ver, "%Y%m%d.%H%M%S", &tm);
|
strftime(ver, sizeof ver, "%Y%m%d.%H%M%S", &tm);
|
||||||
|
|
||||||
virtpkg = apk_pkg_new();
|
virtpkg = apk_pkg_new();
|
||||||
|
|
|
@ -4,7 +4,6 @@ get_block() {
|
||||||
awk '/^@'$1'/{p=1;next} /^@/{p=0} p{print}'
|
awk '/^@'$1'/{p=1;next} /^@/{p=0} p{print}'
|
||||||
}
|
}
|
||||||
|
|
||||||
export TZ=UTC
|
|
||||||
APK_TEST="../src/apk-test"
|
APK_TEST="../src/apk-test"
|
||||||
TEST_TO_RUN="$@"
|
TEST_TO_RUN="$@"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue