Bug fix: Environment variable SOURCE_DATE_EPOCH did not affect synthetic files

This commit is contained in:
Thomas Schmitt 2019-04-18 11:30:34 +02:00
parent 1f8d9c7a44
commit 5b62c55d12
2 changed files with 10 additions and 2 deletions

View File

@ -2618,6 +2618,10 @@ malformed:;
strcpy(xorriso->vol_uuid, num_text); strcpy(xorriso->vol_uuid, num_text);
xorriso->gpt_guid_mode= 2; /* Disk GUID from vol_uuid */ xorriso->gpt_guid_mode= 2; /* Disk GUID from vol_uuid */
strcpy(xorriso->all_file_dates, "set_to_mtime"); strcpy(xorriso->all_file_dates, "set_to_mtime");
xorriso->do_override_now_time= 1;
xorriso->now_time_override= tsec;
Xorriso_set_libisofs_now(xorriso, 0);
sprintf(xorriso->info_text, sprintf(xorriso->info_text,
"Environment variable SOURCE_DATE_EPOCH encountered with value %s", "Environment variable SOURCE_DATE_EPOCH encountered with value %s",
sec_text); sec_text);
@ -2630,8 +2634,12 @@ malformed:;
xorriso->all_file_dates); xorriso->all_file_dates);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "DEBUG", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "DEBUG", 0);
sprintf(xorriso->info_text, sprintf(xorriso->info_text,
"SOURCE_DATE_EPOCH : -boot_image any volume_date_uuid"); "SOURCE_DATE_EPOCH : -boot_image any gpt_disk_guid=volume_date_uuid");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "DEBUG", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "DEBUG", 0);
sprintf(xorriso->info_text,
"SOURCE_DATE_EPOCH : -iso_nowtime =%.f", (double) tsec);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "DEBUG", 0);
return(1); return(1);
} }

View File

@ -1 +1 @@
#define Xorriso_timestamP "2019.04.18.092737" #define Xorriso_timestamP "2019.04.18.092941"