summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-08-23 11:11:29 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-08-23 11:13:59 +0300
commit22be715f530aa81cc522899d95ef4084f5ef8a56 (patch)
tree77a0a717e899d595ea32eacf0ec7c5feea85a9bd
parentb352ba750ff4df362a8246c2f5cd3e73a66c9c7c (diff)
downloadapk-tools-22be715f530aa81cc522899d95ef4084f5ef8a56.tar.gz
apk-tools-22be715f530aa81cc522899d95ef4084f5ef8a56.tar.bz2
apk-tools-22be715f530aa81cc522899d95ef4084f5ef8a56.tar.xz
apk-tools-22be715f530aa81cc522899d95ef4084f5ef8a56.zip
db: honor SOURCE_DATE_EPOCH for scriptdb
fixes #10762
-rw-r--r--src/database.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index 5f4e5e6..5a98d56 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1017,7 +1017,6 @@ static int apk_db_scriptdb_write(struct apk_database *db, struct apk_ostream *os
char filename[256];
apk_blob_t bfn;
int r, i;
- time_t now = time(NULL);
list_for_each_entry(ipkg, &db->installed.packages, installed_pkgs_list) {
pkg = ipkg->pkg;
@@ -1030,7 +1029,6 @@ static int apk_db_scriptdb_write(struct apk_database *db, struct apk_ostream *os
.name = filename,
.size = ipkg->script[i].len,
.mode = 0755 | S_IFREG,
- .mtime = now,
};
/* The scripts db expects file names in format:
* pkg-version.<hexdump of package checksum>.action */