Changes In Branch pkgdSelfUpdate Excluding Merge-Ins
This is equivalent to a diff from 7e7cba65fa to 3012f43a77
2016-08-19
| ||
20:13 | Refactor and add code to permit the package repository and downloader clients to be self-updated. check-in: 090817ba13 user: mistachkin tags: trunk | |
20:03 | Add OpenPGP signature files for all the Eagle Package Repository and Downloader Client files. Closed-Leaf check-in: 3012f43a77 user: mistachkin tags: pkgdSelfUpdate | |
19:59 | Fix some comments. check-in: ff701ef80a user: mistachkin tags: pkgdSelfUpdate | |
04:51 | Refactoring work-in-progress on the package downloader client. check-in: 1b8b52e27d user: mistachkin tags: pkgdSelfUpdate | |
02:55 | Move all package client files into a '1.0' sub-directory. check-in: 7e7cba65fa user: mistachkin tags: trunk | |
02:48 | Remove the duplicated 'maybeReadSettingsFile' procedure as it is no longer necessary. check-in: 89022f2b30 user: mistachkin tags: trunk | |
Added client/1.0/pkgIndex.eagle.asc version [86e19e6896].
|
Added client/1.0/pkgIndex.eagle.harpy.asc version [7fefab1246].
|
Added client/1.0/pkgIndex.tcl.asc version [65db1705b9].
|
Added client/1.0/pkgIndex.tcl.harpy.asc version [a00b05380d].
|
Modified client/1.0/pkgd.eagle from [39534dc0c9] to [0810aba31e].
︙ | |||
21 22 23 24 25 26 27 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - + + + + + + + + + + + | # namespace eval ::PackageDownloader { # # NOTE: This procedure sets up the default values for all configuration # parameters used by the package downloader client. There are no # arguments. # |
︙ | |||
54 55 56 57 58 59 60 | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | if {![info exists downloadUri]} then { set downloadUri {${baseUri}?download&ci=trunk&filename=${fileName}} } # # NOTE: The root directory where any persistent packages will be saved. # |
︙ | |||
123 124 125 126 127 128 129 130 131 132 | 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + - - - + + + + - - - + + + + - + - - + - - + - - - - + + + + - - - - + + + - - - + - - - + - - + + + + + + + - + - - + + + + + - + - - - + - - - + + + + - - - + + + - - - + + + - - - + + + + + + - - + + - + - - - - + - - - - + - - - - - + + + + + + + + + | } } } else { error "unsupported language, no idea how to modify auto-path" } } # # NOTE: This procedure downloads a single file from the package file server, # writing its contents to the specified local file name. It can also # verify the OpenPGP signatures. When an OpenPGP signature file is # downloaded, this procedure assumes the corresponding data file was # already downloaded (i.e. since OpenPGP needs both to perform the # signature checks). The language argument must be one of the # literal strings "eagle", "tcl", or "client". The version argument # must be one of the literal strings "8.4", "8.5", or "8.6" when the # language is "tcl" -OR- the literal string "1.0" when the language # is either "eagle" or "client". The fileName argument is a file # name relative to the language and version-specific directory on the # package file server. The localFileName argument is the file name # where the downloaded file should be written. The usePgp argument # should be non-zero when an OpenPGP signature file needs to be # downloaded and verified for the downloaded file. # proc downloadOneFile { language version fileName localFileName usePgp } { variable baseUri variable downloadUri variable quiet # # NOTE: First, build the full relative file name to download from # the remote package repository. # set fileName [file join $language $version $fileName] set uri [subst $downloadUri] # # NOTE: Then, in one step, download the file from the package file # server and write it to the specified local file. # if {[isEagle]} then { writeFile $localFileName [interp readorgetscriptfile -- "" $uri] } else { writeFile $localFileName \ [::PackageRepository::getFileViaHttp $uri 10 stdout $quiet] } # # NOTE: Is use of OpenPGP for signature verification enabled? Also, # did we just download an OpenPGP signature file? # if {$usePgp && [isPgpSignatureFileName $localFileName true]} then { # # NOTE: Attempt to verify the OpenPGP signature. If this fails, # an error is raised. # if {![::PackageRepository::verifyPgpSignature $localFileName]} then { error [appendArgs \ "bad PGP signature \"" $localFileName \"] } } } # # NOTE: This procedure attempts to download a list of files, optionally # persistening them for subsequent uses by the target language. |
︙ | |||
277 278 279 280 281 282 283 | 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 | - + | # one or more of the variable setup in the next step. # ::PackageRepository::maybeReadSettingsFile [info script] # # NOTE: Setup the variables, within this namespace, used by this script. # |
Added client/1.0/pkgd.eagle.asc version [a697b7c7e7].
|
Modified client/1.0/pkgd.eagle.harpy from [d275cf6011] to [57f0328be3].
︙ | |||
17 18 19 20 21 22 23 | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | - + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + | THE ASSOCIATED SOFTWARE MAY NOT WORK PROPERLY IF THIS FILE IS ALTERED. --> <Certificate xmlns="https://eagle.to/2011/harpy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Protocol>None</Protocol> <Vendor>Mistachkin Systems</Vendor> |
Added client/1.0/pkgd.eagle.harpy.asc version [795fef09ef].
|
Modified client/1.0/pkgr.eagle from [9dc3f0e9e9] to [5a0dd193f2].
︙ | |||
95 96 97 98 99 100 101 | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | - + + + - + - - + + - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - + + + + + + | # # NOTE: This procedure returns non-zero if the specified string value # looks like a Harpy (script) certificate. The value argument # is the string to check. # # <public> proc isHarpyCertificate { value } { |
︙ | |||
630 631 632 633 634 635 636 | 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 | - - + + | return false } # # NOTE: This procedure uses the package lookup metadata. If the package # script is properly signed, an attempt will be made to evaluate it |
︙ | |||
892 893 894 895 896 897 898 | 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 | - + - + - + + - - + + - - + + - - + + - - + + | # # NOTE: If there is no package script, there is nothing we # can do here. # if {[string length $metadata(script)] > 0} then { # # NOTE: Figure out temporary file name for the downloaded script |
︙ |
Added client/1.0/pkgr.eagle.asc version [697b9e609f].
|
Modified client/1.0/pkgr.eagle.harpy from [8c0f96195a] to [3ea72268c0].
︙ | |||
17 18 19 20 21 22 23 | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | - + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + | THE ASSOCIATED SOFTWARE MAY NOT WORK PROPERLY IF THIS FILE IS ALTERED. --> <Certificate xmlns="https://eagle.to/2011/harpy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Protocol>None</Protocol> <Vendor>Mistachkin Systems</Vendor> |
Added client/1.0/pkgr.eagle.harpy.asc version [1ac4cc3780].
|