db: honor SOURCE_DATE_EPOCH for scriptdb

fixes #10762
cute-signatures
Timo Teräs 2021-08-23 11:11:29 +03:00
parent ba0e2b579d
commit 33c1de8ea1
1 changed files with 0 additions and 2 deletions

View File

@ -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 */