Differences From:
File
src/checkin.c
part of check-in
[394505791628e]
- Add primitive start-time and duration controols to the timeline.
Additional checksums on check-in and check-out.
by
drh on
2007-08-01 21:03:03.
[view]
To:
File
src/checkin.c
part of check-in
[e37451d9c2]
- Add the ability to sign manifests using GPG during a check-in.
Due to a bug in the manifest parser, older versions will not be
able to check-out signed manifests.
by
drh on
2007-08-01 21:59:38.
[view]
@@ -299,10 +299,18 @@
blob_appendf(&manifest, "U %F\n", g.zLogin);
md5sum_blob(&manifest, &mcksum);
blob_appendf(&manifest, "Z %b\n", &mcksum);
zManifestFile = mprintf("%smanifest", g.zLocalRoot);
- blob_write_to_file(&manifest, zManifestFile);
- /* Try to sign the manifest */
+ if( clearsign(&manifest, &manifest) ){
+ Blob ans;
+ blob_zero(&ans);
+ prompt_user("unable to sign manifest. continue [y/N]? ", &ans);
+ if( blob_str(&ans)[0]!='y' ){
+ db_end_transaction(1);
+ exit(1);
+ }
+ }
+ blob_write_to_file(&manifest, zManifestFile);
blob_reset(&manifest);
blob_read_from_file(&manifest, zManifestFile);
free(zManifestFile);
nvid = content_put(&manifest, 0);