Fossil SCM
Turn ignore-glob, crnl-glob, binary-glob and manifest settings into versionable settings.
Commit
43b0d795e50bc0f53743bd80bbbbac054200c0ef
Parent
7d048033924f617…
6 files changed
+3
-3
+5
-5
+1
-1
+1
-1
+1
-1
+1
-1
+3
-3
| --- src/add.c | ||
| +++ src/add.c | ||
| @@ -60,11 +60,11 @@ | ||
| 60 | 60 | "manifest.uuid", |
| 61 | 61 | }; |
| 62 | 62 | |
| 63 | 63 | if( N>=0 && N<count(azName) ) return azName[N]; |
| 64 | 64 | if( N>=count(azName) && N<count(azName)+count(azManifest) |
| 65 | - && db_get_boolean("manifest",0) ){ | |
| 65 | + && db_get_versionable_setting_boolean("manifest",0) ){ | |
| 66 | 66 | return azManifest[N-count(azName)]; |
| 67 | 67 | } |
| 68 | 68 | return 0; |
| 69 | 69 | } |
| 70 | 70 | |
| @@ -185,11 +185,11 @@ | ||
| 185 | 185 | |
| 186 | 186 | zIgnoreFlag = find_option("ignore",0,1); |
| 187 | 187 | includeDotFiles = find_option("dotfiles",0,0)!=0; |
| 188 | 188 | db_must_be_within_tree(); |
| 189 | 189 | if( zIgnoreFlag==0 ){ |
| 190 | - zIgnoreFlag = db_get("ignore-glob", 0); | |
| 190 | + zIgnoreFlag = db_get_versionable_setting("ignore-glob", 0); | |
| 191 | 191 | } |
| 192 | 192 | vid = db_lget_int("checkout",0); |
| 193 | 193 | if( vid==0 ){ |
| 194 | 194 | fossil_panic("no checkout to add to"); |
| 195 | 195 | } |
| @@ -337,11 +337,11 @@ | ||
| 337 | 337 | int nDelete = 0; |
| 338 | 338 | Glob *pIgnore; |
| 339 | 339 | |
| 340 | 340 | db_must_be_within_tree(); |
| 341 | 341 | if( zIgnoreFlag==0 ){ |
| 342 | - zIgnoreFlag = db_get("ignore-glob", 0); | |
| 342 | + zIgnoreFlag = db_get_versionable_setting("ignore-glob", 0); | |
| 343 | 343 | } |
| 344 | 344 | vid = db_lget_int("checkout",0); |
| 345 | 345 | if( vid==0 ){ |
| 346 | 346 | fossil_panic("no checkout to add to"); |
| 347 | 347 | } |
| 348 | 348 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -60,11 +60,11 @@ | |
| 60 | "manifest.uuid", |
| 61 | }; |
| 62 | |
| 63 | if( N>=0 && N<count(azName) ) return azName[N]; |
| 64 | if( N>=count(azName) && N<count(azName)+count(azManifest) |
| 65 | && db_get_boolean("manifest",0) ){ |
| 66 | return azManifest[N-count(azName)]; |
| 67 | } |
| 68 | return 0; |
| 69 | } |
| 70 | |
| @@ -185,11 +185,11 @@ | |
| 185 | |
| 186 | zIgnoreFlag = find_option("ignore",0,1); |
| 187 | includeDotFiles = find_option("dotfiles",0,0)!=0; |
| 188 | db_must_be_within_tree(); |
| 189 | if( zIgnoreFlag==0 ){ |
| 190 | zIgnoreFlag = db_get("ignore-glob", 0); |
| 191 | } |
| 192 | vid = db_lget_int("checkout",0); |
| 193 | if( vid==0 ){ |
| 194 | fossil_panic("no checkout to add to"); |
| 195 | } |
| @@ -337,11 +337,11 @@ | |
| 337 | int nDelete = 0; |
| 338 | Glob *pIgnore; |
| 339 | |
| 340 | db_must_be_within_tree(); |
| 341 | if( zIgnoreFlag==0 ){ |
| 342 | zIgnoreFlag = db_get("ignore-glob", 0); |
| 343 | } |
| 344 | vid = db_lget_int("checkout",0); |
| 345 | if( vid==0 ){ |
| 346 | fossil_panic("no checkout to add to"); |
| 347 | } |
| 348 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -60,11 +60,11 @@ | |
| 60 | "manifest.uuid", |
| 61 | }; |
| 62 | |
| 63 | if( N>=0 && N<count(azName) ) return azName[N]; |
| 64 | if( N>=count(azName) && N<count(azName)+count(azManifest) |
| 65 | && db_get_versionable_setting_boolean("manifest",0) ){ |
| 66 | return azManifest[N-count(azName)]; |
| 67 | } |
| 68 | return 0; |
| 69 | } |
| 70 | |
| @@ -185,11 +185,11 @@ | |
| 185 | |
| 186 | zIgnoreFlag = find_option("ignore",0,1); |
| 187 | includeDotFiles = find_option("dotfiles",0,0)!=0; |
| 188 | db_must_be_within_tree(); |
| 189 | if( zIgnoreFlag==0 ){ |
| 190 | zIgnoreFlag = db_get_versionable_setting("ignore-glob", 0); |
| 191 | } |
| 192 | vid = db_lget_int("checkout",0); |
| 193 | if( vid==0 ){ |
| 194 | fossil_panic("no checkout to add to"); |
| 195 | } |
| @@ -337,11 +337,11 @@ | |
| 337 | int nDelete = 0; |
| 338 | Glob *pIgnore; |
| 339 | |
| 340 | db_must_be_within_tree(); |
| 341 | if( zIgnoreFlag==0 ){ |
| 342 | zIgnoreFlag = db_get_versionable_setting("ignore-glob", 0); |
| 343 | } |
| 344 | vid = db_lget_int("checkout",0); |
| 345 | if( vid==0 ){ |
| 346 | fossil_panic("no checkout to add to"); |
| 347 | } |
| 348 |
+5
-5
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -224,16 +224,16 @@ | ||
| 224 | 224 | int allFlag = find_option("dotfiles",0,0)!=0; |
| 225 | 225 | int outputManifest; |
| 226 | 226 | Glob *pIgnore; |
| 227 | 227 | |
| 228 | 228 | db_must_be_within_tree(); |
| 229 | - outputManifest = db_get_boolean("manifest",0); | |
| 229 | + outputManifest = db_get_versionable_setting_boolean("manifest",0); | |
| 230 | 230 | db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)"); |
| 231 | 231 | n = strlen(g.zLocalRoot); |
| 232 | 232 | blob_init(&path, g.zLocalRoot, n-1); |
| 233 | 233 | if( zIgnoreFlag==0 ){ |
| 234 | - zIgnoreFlag = db_get("ignore-glob", 0); | |
| 234 | + zIgnoreFlag = db_get_versionable_setting("ignore-glob", 0); | |
| 235 | 235 | } |
| 236 | 236 | pIgnore = glob_create(zIgnoreFlag); |
| 237 | 237 | vfile_scan(&path, blob_size(&path), allFlag, pIgnore); |
| 238 | 238 | glob_free(pIgnore); |
| 239 | 239 | db_prepare(&q, |
| @@ -283,11 +283,11 @@ | ||
| 283 | 283 | allFlag = find_option("force","f",0)!=0; |
| 284 | 284 | dotfilesFlag = find_option("dotfiles",0,0)!=0; |
| 285 | 285 | zIgnoreFlag = find_option("ignore",0,1); |
| 286 | 286 | db_must_be_within_tree(); |
| 287 | 287 | if( zIgnoreFlag==0 ){ |
| 288 | - zIgnoreFlag = db_get("ignore-glob", 0); | |
| 288 | + zIgnoreFlag = db_get_versionable_setting("ignore-glob", 0); | |
| 289 | 289 | } |
| 290 | 290 | db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)"); |
| 291 | 291 | n = strlen(g.zLocalRoot); |
| 292 | 292 | blob_init(&path, g.zLocalRoot, n-1); |
| 293 | 293 | pIgnore = glob_create(zIgnoreFlag); |
| @@ -831,11 +831,11 @@ | ||
| 831 | 831 | zUserOvrd = find_option("user-override",0,1); |
| 832 | 832 | db_must_be_within_tree(); |
| 833 | 833 | noSign = db_get_boolean("omitsign", 0)|noSign; |
| 834 | 834 | if( db_get_boolean("clearsign", 0)==0 ){ noSign = 1; } |
| 835 | 835 | useCksum = db_get_boolean("repo-cksum", 1); |
| 836 | - outputManifest = db_get_boolean("manifest", 0); | |
| 836 | + outputManifest = db_get_versionable_setting_boolean("manifest", 0); | |
| 837 | 837 | verify_all_options(); |
| 838 | 838 | |
| 839 | 839 | /* So that older versions of Fossil (that do not understand delta- |
| 840 | 840 | ** manifest) can continue to use this repository, do not create a new |
| 841 | 841 | ** delta-manifest unless this repository already contains one or more |
| @@ -972,11 +972,11 @@ | ||
| 972 | 972 | ** the identified fils are inserted (if they have been modified). |
| 973 | 973 | */ |
| 974 | 974 | db_prepare(&q, |
| 975 | 975 | "SELECT id, %Q || pathname, mrid, %s FROM vfile " |
| 976 | 976 | "WHERE chnged==1 AND NOT deleted AND file_is_selected(id)", |
| 977 | - g.zLocalRoot, glob_expr("pathname", db_get("crnl-glob","")) | |
| 977 | + g.zLocalRoot, glob_expr("pathname", db_get_versionable_setting("crnl-glob","")) | |
| 978 | 978 | ); |
| 979 | 979 | while( db_step(&q)==SQLITE_ROW ){ |
| 980 | 980 | int id, rid; |
| 981 | 981 | const char *zFullname; |
| 982 | 982 | Blob content; |
| 983 | 983 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -224,16 +224,16 @@ | |
| 224 | int allFlag = find_option("dotfiles",0,0)!=0; |
| 225 | int outputManifest; |
| 226 | Glob *pIgnore; |
| 227 | |
| 228 | db_must_be_within_tree(); |
| 229 | outputManifest = db_get_boolean("manifest",0); |
| 230 | db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)"); |
| 231 | n = strlen(g.zLocalRoot); |
| 232 | blob_init(&path, g.zLocalRoot, n-1); |
| 233 | if( zIgnoreFlag==0 ){ |
| 234 | zIgnoreFlag = db_get("ignore-glob", 0); |
| 235 | } |
| 236 | pIgnore = glob_create(zIgnoreFlag); |
| 237 | vfile_scan(&path, blob_size(&path), allFlag, pIgnore); |
| 238 | glob_free(pIgnore); |
| 239 | db_prepare(&q, |
| @@ -283,11 +283,11 @@ | |
| 283 | allFlag = find_option("force","f",0)!=0; |
| 284 | dotfilesFlag = find_option("dotfiles",0,0)!=0; |
| 285 | zIgnoreFlag = find_option("ignore",0,1); |
| 286 | db_must_be_within_tree(); |
| 287 | if( zIgnoreFlag==0 ){ |
| 288 | zIgnoreFlag = db_get("ignore-glob", 0); |
| 289 | } |
| 290 | db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)"); |
| 291 | n = strlen(g.zLocalRoot); |
| 292 | blob_init(&path, g.zLocalRoot, n-1); |
| 293 | pIgnore = glob_create(zIgnoreFlag); |
| @@ -831,11 +831,11 @@ | |
| 831 | zUserOvrd = find_option("user-override",0,1); |
| 832 | db_must_be_within_tree(); |
| 833 | noSign = db_get_boolean("omitsign", 0)|noSign; |
| 834 | if( db_get_boolean("clearsign", 0)==0 ){ noSign = 1; } |
| 835 | useCksum = db_get_boolean("repo-cksum", 1); |
| 836 | outputManifest = db_get_boolean("manifest", 0); |
| 837 | verify_all_options(); |
| 838 | |
| 839 | /* So that older versions of Fossil (that do not understand delta- |
| 840 | ** manifest) can continue to use this repository, do not create a new |
| 841 | ** delta-manifest unless this repository already contains one or more |
| @@ -972,11 +972,11 @@ | |
| 972 | ** the identified fils are inserted (if they have been modified). |
| 973 | */ |
| 974 | db_prepare(&q, |
| 975 | "SELECT id, %Q || pathname, mrid, %s FROM vfile " |
| 976 | "WHERE chnged==1 AND NOT deleted AND file_is_selected(id)", |
| 977 | g.zLocalRoot, glob_expr("pathname", db_get("crnl-glob","")) |
| 978 | ); |
| 979 | while( db_step(&q)==SQLITE_ROW ){ |
| 980 | int id, rid; |
| 981 | const char *zFullname; |
| 982 | Blob content; |
| 983 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -224,16 +224,16 @@ | |
| 224 | int allFlag = find_option("dotfiles",0,0)!=0; |
| 225 | int outputManifest; |
| 226 | Glob *pIgnore; |
| 227 | |
| 228 | db_must_be_within_tree(); |
| 229 | outputManifest = db_get_versionable_setting_boolean("manifest",0); |
| 230 | db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)"); |
| 231 | n = strlen(g.zLocalRoot); |
| 232 | blob_init(&path, g.zLocalRoot, n-1); |
| 233 | if( zIgnoreFlag==0 ){ |
| 234 | zIgnoreFlag = db_get_versionable_setting("ignore-glob", 0); |
| 235 | } |
| 236 | pIgnore = glob_create(zIgnoreFlag); |
| 237 | vfile_scan(&path, blob_size(&path), allFlag, pIgnore); |
| 238 | glob_free(pIgnore); |
| 239 | db_prepare(&q, |
| @@ -283,11 +283,11 @@ | |
| 283 | allFlag = find_option("force","f",0)!=0; |
| 284 | dotfilesFlag = find_option("dotfiles",0,0)!=0; |
| 285 | zIgnoreFlag = find_option("ignore",0,1); |
| 286 | db_must_be_within_tree(); |
| 287 | if( zIgnoreFlag==0 ){ |
| 288 | zIgnoreFlag = db_get_versionable_setting("ignore-glob", 0); |
| 289 | } |
| 290 | db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)"); |
| 291 | n = strlen(g.zLocalRoot); |
| 292 | blob_init(&path, g.zLocalRoot, n-1); |
| 293 | pIgnore = glob_create(zIgnoreFlag); |
| @@ -831,11 +831,11 @@ | |
| 831 | zUserOvrd = find_option("user-override",0,1); |
| 832 | db_must_be_within_tree(); |
| 833 | noSign = db_get_boolean("omitsign", 0)|noSign; |
| 834 | if( db_get_boolean("clearsign", 0)==0 ){ noSign = 1; } |
| 835 | useCksum = db_get_boolean("repo-cksum", 1); |
| 836 | outputManifest = db_get_versionable_setting_boolean("manifest", 0); |
| 837 | verify_all_options(); |
| 838 | |
| 839 | /* So that older versions of Fossil (that do not understand delta- |
| 840 | ** manifest) can continue to use this repository, do not create a new |
| 841 | ** delta-manifest unless this repository already contains one or more |
| @@ -972,11 +972,11 @@ | |
| 972 | ** the identified fils are inserted (if they have been modified). |
| 973 | */ |
| 974 | db_prepare(&q, |
| 975 | "SELECT id, %Q || pathname, mrid, %s FROM vfile " |
| 976 | "WHERE chnged==1 AND NOT deleted AND file_is_selected(id)", |
| 977 | g.zLocalRoot, glob_expr("pathname", db_get_versionable_setting("crnl-glob","")) |
| 978 | ); |
| 979 | while( db_step(&q)==SQLITE_ROW ){ |
| 980 | int id, rid; |
| 981 | const char *zFullname; |
| 982 | Blob content; |
| 983 |
+1
-1
| --- src/checkout.c | ||
| +++ src/checkout.c | ||
| @@ -141,11 +141,11 @@ | ||
| 141 | 141 | void manifest_to_disk(int vid){ |
| 142 | 142 | char *zManFile; |
| 143 | 143 | Blob manifest; |
| 144 | 144 | Blob hash; |
| 145 | 145 | |
| 146 | - if( db_get_boolean("manifest",0) ){ | |
| 146 | + if( db_get_versionable_setting_boolean("manifest",0) ){ | |
| 147 | 147 | blob_zero(&manifest); |
| 148 | 148 | content_get(vid, &manifest); |
| 149 | 149 | zManFile = mprintf("%smanifest", g.zLocalRoot); |
| 150 | 150 | blob_write_to_file(&manifest, zManFile); |
| 151 | 151 | free(zManFile); |
| 152 | 152 |
| --- src/checkout.c | |
| +++ src/checkout.c | |
| @@ -141,11 +141,11 @@ | |
| 141 | void manifest_to_disk(int vid){ |
| 142 | char *zManFile; |
| 143 | Blob manifest; |
| 144 | Blob hash; |
| 145 | |
| 146 | if( db_get_boolean("manifest",0) ){ |
| 147 | blob_zero(&manifest); |
| 148 | content_get(vid, &manifest); |
| 149 | zManFile = mprintf("%smanifest", g.zLocalRoot); |
| 150 | blob_write_to_file(&manifest, zManFile); |
| 151 | free(zManFile); |
| 152 |
| --- src/checkout.c | |
| +++ src/checkout.c | |
| @@ -141,11 +141,11 @@ | |
| 141 | void manifest_to_disk(int vid){ |
| 142 | char *zManFile; |
| 143 | Blob manifest; |
| 144 | Blob hash; |
| 145 | |
| 146 | if( db_get_versionable_setting_boolean("manifest",0) ){ |
| 147 | blob_zero(&manifest); |
| 148 | content_get(vid, &manifest); |
| 149 | zManFile = mprintf("%smanifest", g.zLocalRoot); |
| 150 | blob_write_to_file(&manifest, zManFile); |
| 151 | free(zManFile); |
| 152 |
+1
-1
| --- src/merge.c | ||
| +++ src/merge.c | ||
| @@ -91,11 +91,11 @@ | ||
| 91 | 91 | zPivot = find_option("baseline",0,1); |
| 92 | 92 | if( g.argc!=3 ){ |
| 93 | 93 | usage("VERSION"); |
| 94 | 94 | } |
| 95 | 95 | db_must_be_within_tree(); |
| 96 | - if( zBinGlob==0 ) zBinGlob = db_get("binary-glob",0); | |
| 96 | + if( zBinGlob==0 ) zBinGlob = db_get_versionable_setting("binary-glob",0); | |
| 97 | 97 | vid = db_lget_int("checkout", 0); |
| 98 | 98 | if( vid==0 ){ |
| 99 | 99 | fossil_fatal("nothing is checked out"); |
| 100 | 100 | } |
| 101 | 101 | mid = name_to_rid(g.argv[2]); |
| 102 | 102 |
| --- src/merge.c | |
| +++ src/merge.c | |
| @@ -91,11 +91,11 @@ | |
| 91 | zPivot = find_option("baseline",0,1); |
| 92 | if( g.argc!=3 ){ |
| 93 | usage("VERSION"); |
| 94 | } |
| 95 | db_must_be_within_tree(); |
| 96 | if( zBinGlob==0 ) zBinGlob = db_get("binary-glob",0); |
| 97 | vid = db_lget_int("checkout", 0); |
| 98 | if( vid==0 ){ |
| 99 | fossil_fatal("nothing is checked out"); |
| 100 | } |
| 101 | mid = name_to_rid(g.argv[2]); |
| 102 |
| --- src/merge.c | |
| +++ src/merge.c | |
| @@ -91,11 +91,11 @@ | |
| 91 | zPivot = find_option("baseline",0,1); |
| 92 | if( g.argc!=3 ){ |
| 93 | usage("VERSION"); |
| 94 | } |
| 95 | db_must_be_within_tree(); |
| 96 | if( zBinGlob==0 ) zBinGlob = db_get_versionable_setting("binary-glob",0); |
| 97 | vid = db_lget_int("checkout", 0); |
| 98 | if( vid==0 ){ |
| 99 | fossil_fatal("nothing is checked out"); |
| 100 | } |
| 101 | mid = name_to_rid(g.argv[2]); |
| 102 |
+1
-1
| --- src/tar.c | ||
| +++ src/tar.c | ||
| @@ -215,11 +215,11 @@ | ||
| 215 | 215 | nPrefix = blob_size(&filename); |
| 216 | 216 | |
| 217 | 217 | pManifest = manifest_get(rid, CFTYPE_MANIFEST); |
| 218 | 218 | if( pManifest ){ |
| 219 | 219 | mTime = (pManifest->rDate - 2440587.5)*86400.0; |
| 220 | - if( db_get_boolean("manifest", 0) ){ | |
| 220 | + if( db_get_versionable_setting_boolean("manifest", 0) ){ | |
| 221 | 221 | blob_append(&filename, "manifest", -1); |
| 222 | 222 | zName = blob_str(&filename); |
| 223 | 223 | tar_add_file(zName, &mfile, 0, mTime); |
| 224 | 224 | sha1sum_blob(&mfile, &hash); |
| 225 | 225 | blob_reset(&mfile); |
| 226 | 226 |
| --- src/tar.c | |
| +++ src/tar.c | |
| @@ -215,11 +215,11 @@ | |
| 215 | nPrefix = blob_size(&filename); |
| 216 | |
| 217 | pManifest = manifest_get(rid, CFTYPE_MANIFEST); |
| 218 | if( pManifest ){ |
| 219 | mTime = (pManifest->rDate - 2440587.5)*86400.0; |
| 220 | if( db_get_boolean("manifest", 0) ){ |
| 221 | blob_append(&filename, "manifest", -1); |
| 222 | zName = blob_str(&filename); |
| 223 | tar_add_file(zName, &mfile, 0, mTime); |
| 224 | sha1sum_blob(&mfile, &hash); |
| 225 | blob_reset(&mfile); |
| 226 |
| --- src/tar.c | |
| +++ src/tar.c | |
| @@ -215,11 +215,11 @@ | |
| 215 | nPrefix = blob_size(&filename); |
| 216 | |
| 217 | pManifest = manifest_get(rid, CFTYPE_MANIFEST); |
| 218 | if( pManifest ){ |
| 219 | mTime = (pManifest->rDate - 2440587.5)*86400.0; |
| 220 | if( db_get_versionable_setting_boolean("manifest", 0) ){ |
| 221 | blob_append(&filename, "manifest", -1); |
| 222 | zName = blob_str(&filename); |
| 223 | tar_add_file(zName, &mfile, 0, mTime); |
| 224 | sha1sum_blob(&mfile, &hash); |
| 225 | blob_reset(&mfile); |
| 226 |
+1
-1
| --- src/zip.c | ||
| +++ src/zip.c | ||
| @@ -337,11 +337,11 @@ | ||
| 337 | 337 | |
| 338 | 338 | pManifest = manifest_get(rid, CFTYPE_MANIFEST); |
| 339 | 339 | if( pManifest ){ |
| 340 | 340 | char *zName; |
| 341 | 341 | zip_set_timedate(pManifest->rDate); |
| 342 | - if( db_get_boolean("manifest", 0) ){ | |
| 342 | + if( db_get_versionable_setting_boolean("manifest", 0) ){ | |
| 343 | 343 | blob_append(&filename, "manifest", -1); |
| 344 | 344 | zName = blob_str(&filename); |
| 345 | 345 | zip_add_folders(zName); |
| 346 | 346 | zip_add_file(zName, &mfile, 0); |
| 347 | 347 | sha1sum_blob(&mfile, &hash); |
| 348 | 348 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -337,11 +337,11 @@ | |
| 337 | |
| 338 | pManifest = manifest_get(rid, CFTYPE_MANIFEST); |
| 339 | if( pManifest ){ |
| 340 | char *zName; |
| 341 | zip_set_timedate(pManifest->rDate); |
| 342 | if( db_get_boolean("manifest", 0) ){ |
| 343 | blob_append(&filename, "manifest", -1); |
| 344 | zName = blob_str(&filename); |
| 345 | zip_add_folders(zName); |
| 346 | zip_add_file(zName, &mfile, 0); |
| 347 | sha1sum_blob(&mfile, &hash); |
| 348 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -337,11 +337,11 @@ | |
| 337 | |
| 338 | pManifest = manifest_get(rid, CFTYPE_MANIFEST); |
| 339 | if( pManifest ){ |
| 340 | char *zName; |
| 341 | zip_set_timedate(pManifest->rDate); |
| 342 | if( db_get_versionable_setting_boolean("manifest", 0) ){ |
| 343 | blob_append(&filename, "manifest", -1); |
| 344 | zName = blob_str(&filename); |
| 345 | zip_add_folders(zName); |
| 346 | zip_add_file(zName, &mfile, 0); |
| 347 | sha1sum_blob(&mfile, &hash); |
| 348 |