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:11:29 +0300
commit33c1de8ea15e567dbf596d1edba4407d34cd44e3 (patch)
tree1784f976cde1972e30f4c7ed36518801dd0515a4
parentba0e2b579d747c0f3ad8337ab2640c3c1d82a562 (diff)
downloadapk-tools-33c1de8ea15e567dbf596d1edba4407d34cd44e3.tar.gz
apk-tools-33c1de8ea15e567dbf596d1edba4407d34cd44e3.tar.bz2
apk-tools-33c1de8ea15e567dbf596d1edba4407d34cd44e3.tar.xz
apk-tools-33c1de8ea15e567dbf596d1edba4407d34cd44e3.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 980efcd..863829d 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1009,7 +1009,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);
if (IS_ERR(os)) return PTR_ERR(os);
@@ -1024,7 +1023,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 */