Overview
Comment: | Rename the package 'IfNeeded' piece of metadata to simply 'Script', since it may or may not actually be a real 'package ifneeded' script. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
b868c010468ae1fbf691971661dc6f94 |
User & Date: | mistachkin on 2016-08-17 20:06:54 |
Other Links: | manifest | tags |
Context
2016-08-17
| ||
22:39 | Add header comments to all procedures. Make sure to cleanup any 'after' events created when downloading via HTTP in native Tcl. Add language and version argument validation to the 'downloadFiles' procedure. check-in: 3cdc48fb08 user: mistachkin tags: trunk | |
20:06 | Rename the package 'IfNeeded' piece of metadata to simply 'Script', since it may or may not actually be a real 'package ifneeded' script. check-in: b868c01046 user: mistachkin tags: trunk | |
19:32 | Fix multi-pass 'package unknown' integration in native Tcl. check-in: cdb1e4e5a3 user: mistachkin tags: trunk | |
Changes
Modified client/pkgr.eagle from [a4497bd3b4] to [49ca3ae3fb].
︙ | |||
317 318 319 320 321 322 323 | 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 | - + - - + + | } # # NOTE: Grab the package script. If it is an empty string, then the # package cannot be loaded and there is nothing to do. In that # case, just raise an error. # |
︙ | |||
363 364 365 366 367 368 369 | 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 | - + | # NOTE: If the caller wants the package metadata, use their array # variable name. # if {[string length $varName] > 0} then { upvar 1 $varName metadata set metadata(language) $language |
︙ | |||
443 444 445 446 447 448 449 | 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 | - - + + | if {![info exists metadata(language)]} then { error "missing language" } # # NOTE: If the package script is mising, fail. # |
︙ | |||
512 513 514 515 516 517 518 | 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 | - + - + - + | # set script(outer) [string map [list \ %metadata% $newVarName(1) %cleanup% $newVarName(2) \ %eagleHasSecurity% $newProcName(1) %getFileTempName% \ $newProcName(2) %tclMustBeReady% $newProcName(3)] { try { # |
︙ | |||
648 649 650 651 652 653 654 | 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 | - + - + - + | eagle [list proc $newProcName(3) {} [info body [appendArgs \ [namespace current] ::tclMustBeReady]]] return [eagle $script(outer)] } } elseif {[isPgpSignature $metadata(certificate)]} then { # |
︙ | |||
698 699 700 701 702 703 704 | 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 | - + | error "bad PGP signature" } # # NOTE: The PGP signature was verified; use the downloaded package # script verbatim. # |
︙ | |||
870 871 872 873 874 875 876 | 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 | - + - + | set command [list package present $package] if {[string length $version] > 0} then {lappend command $version} if {[catch $command] == 0} then { pkgLog [appendArgs \ "package \"" [formatPackageName $package $version] \ |
︙ |
Modified client/pkgr.eagle.harpy from [d677c7bdb3] to [b8ccecd809].
︙ | |||
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> |