Changes In Branch uploaderClient Through [2a6ac9473f] Excluding Merge-Ins
This is equivalent to a diff from 6240d4658d to 2a6ac9473f
2016-12-18
| ||
21:53 | Initial work on the package uploader client. Not yet fully working nor tested. check-in: 43aac90409 user: mistachkin tags: trunk | |
21:50 | More work on supporting the package uploader client. Use the new OpenPGP 'keys' file (i.e. 'keys.asc', the one with potentially more than one Package Signing Key). Closed-Leaf check-in: 0fc9d3e420 user: mistachkin tags: uploaderClient | |
20:56 | Make the 'getCommonContainingDirectory' procedure work correctly for all corner cases. More cleanup. check-in: 2a6ac9473f user: mistachkin tags: uploaderClient | |
03:10 | Comments, cleanup, more work in progress on the uploader client. Not yet tested. Also, 'getContainingDirectory' still needs work to forbid mismatched root directories. check-in: e05a3e1067 user: mistachkin tags: uploaderClient | |
2016-12-17
| ||
08:33 | More work in progress on the uploader client. check-in: 2b5c357209 user: mistachkin tags: uploaderClient | |
05:31 | Add stub file for the package uploader tool. check-in: 6240d4658d user: mistachkin tags: trunk | |
05:07 | Initial work on the package uploader client. Add procedures to permit programmatically signing package files. check-in: 9f66ed055c user: mistachkin tags: trunk | |
Modified client/1.0/neutral/pkgr.eagle from [46ce6d2906] to [6dfa391a89].
︙ | ︙ | |||
350 351 352 353 354 355 356 | if {[catch { eval exec -success Success $openPgpInstalledCommand } result]} then { error "cannot use OpenPGP: may not be installed and/or configured" } } else { if {[catch { | | | 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 | if {[catch { eval exec -success Success $openPgpInstalledCommand } result]} then { error "cannot use OpenPGP: may not be installed and/or configured" } } else { if {[catch { eval exec $openPgpInstalledCommand } result]} then { error "cannot use OpenPGP: may not be installed and/or configured" } } if {![info exists result] || \ ![regexp -- $openPgpInstalledPattern $result]} then { |
︙ | ︙ |
Modified client/1.0/neutral/pkgr.eagle.asc from [4f9aea824a] to [1151a9c981].
1 2 3 4 | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Eagle Package Repository | | | | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Eagle Package Repository iQIcBAABCAAGBQJYVf3KAAoJEFAslq9JXcLZdl8P/3gJbugJFTv34QLfX4lGkE/O 90DdUo9cE5Q3B4TzhdI7q0Pndr3npbHfYN4xE1x31ru49TAvFfvqlfb8ruWbLaut yVT4qWixveJ+9Dmyqz/caP4EEOLiWy5Esyiodsnm0vfmsZNF2l2ZheLemcLk6Vzm Z5mBH3wDwdPP0KP7qKEpz5havgnyt1OMqAeilq8Kr0azBhlKKfCv74XpYvKJk+Rp 6DHO9aRrszMs6MOBHwPBs7WncMiOANNHnj/Q24sxIdqGjIA7FmU4mkZBC0j2ambD 8tk8DUvKLeHMsttpB8K6pur9OdLkXTNy96tH2wMsSH77ewvcuNJs+znB8p2OEcGr s61qNhioRym9L/mtoMeaDQhmTr6xHLP5brLW2VKrm61UoWpakTjcKIX7mKEe2KN0 9PVWgVoKO1u3xxRpqERsdgb72AiHk0usODIqy7WazLLOh+he/yOSiJtYj2Q4VsiC O5E7GTkdD9XRWaltkJ2TYxDC8C4VSUoWsXTKHnMRczg3iIk6sqgxRkAHqa1ggjM9 sBMuwJtJwKeWvLtTwJef5qZp4pdY9rxZo5wn92nMx9veLUit963ORAe1ww2gqFdk o7kAVia6QL6csbhyO8hgx+ozi0vrD9THIfO6KNYXhn6zEthX8ZYcf9gS/gUcpef9 HP4UN52z9xe1HmJ1zztl =m5li -----END PGP SIGNATURE----- |
Modified client/1.0/neutral/pkgr.eagle.harpy from [c814762109] to [ad1f66b9ba].
︙ | ︙ | |||
17 18 19 20 21 22 23 | 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> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | 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> <Id>0dc9006c-d011-45fe-a801-6b1fb194725f</Id> <HashAlgorithm>SHA512</HashAlgorithm> <EntityType>Script</EntityType> <TimeStamp>2016-12-18T03:08:09.6591796Z</TimeStamp> <Duration>-1.00:00:00</Duration> <Key>0x9559f6017247e3e2</Key> <Signature> QMoy86nYqhRcGPASq327kHwGgOlgNIgSgaGQcqXegVwS+EiMkF2tQT9Iyk3T9qAfvyTC/FaE0ltv JIqn6BL+MBpRFgMSwTioiCKrAtO/fxLFm+n1B/MKdtA0mDJzQouLGopGpcIPdpPjqy7coxELuoV5 nWgu0vXytBNfo22I/ivhHq0uVBMI8vgZE6ZpQkjTnhbq9JtAR/rYs2NHTfUAVHeBJVQ2NRYV8o1/ oeAWMvwj71ZFcLjQjPHVvrUaN/q10PMlzmVRiJTqdoksRjacmnPam0Uh07yW5yL+pPZD1qQP1g0j yF+BbHsZuPRQVqtjtEJz3+l0mi+Rm4stJbL3oKDhfLnZTagyKk+uCvkXi3G1M5V3xIxnqkjYvfQY BiR7kDDDL71hIMAutNUTtBIlCnj8v0/p/yKd3Sb0F4Em+WAGOMH2ZP2YoHq0f17GnyUlFzU4Dnm4 HDQfABL4PI3e0wBsLjSeLgAB2u1ohqJqdSNqxS4fgnj2q3r/H5n9mcKIJlWRUAvIpGk8UQf69fCR CscZJYnvpGlZXqbv0TGVoodwi5ncSs1ZCeksZszJEmvXpT9K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SoGAyEPkyDXnMBK1Ez8W/h8s= </Signature> </Certificate> |
Modified client/1.0/neutral/pkgr.eagle.harpy.asc from [e6c0f2e243] to [5194a87a9b].
1 2 3 4 | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Eagle Package Repository | | | | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Eagle Package Repository iQIcBAABCAAGBQJYVf3LAAoJEFAslq9JXcLZVWgQAJRR53COXyGIGTjnYLyzyZ81 dYJgaM0TIOGK6kPZ+QnJqVKZzrTK5v68JSBxOaIhP15GcBhBfk03Mfi12QjdnZ4N NkZ7odh1X3glBbRoSHCqfyfma8Uz25fW2KVdggFCFyX5SK5A1JgWbFJO2CCcFqy5 po6BDC9kKXAPy6a9PEpPtITXnzo0eixYEQ2Y1p2fcWofKJaGtkNOtxEk5q4S9JLX vV9oFTRnKYOdwil2Ik1LAgANrCYI/gDDckDOsQ92D86xfz6Hz/NHRFbI4zrxR5pm PqtmRFq58IxJ/6e7AydJ0hEQHuRBA+AES/jkvsb4dIo/NLkiTth0mV/nQodBGIWK oT62Ytz/V4mzXrmlwdquHb3mdu3SAkCi/kSEFBpUzg+oOTWPPJ2hNZ7cukhAsT0u WIJZFFi5QgWE8FP+yNPX3RqqjLX2ub1kTacLi4cWl71eOYHC15eIMQFuSDdfYNT6 Oqz9h9sOhLXtZacQmUqYZdT9lXX6QWutfcbjzacIS6c6z0hzJGI7q4MGFsBIJw/c jHlgizkCGIX71KtYCeODwpnHBEqy8DPUlRc6Js0xWruXna2f5W7jwVAkVQZTWSE0 8cIwQ6a2BQMc4/p3xBPOwvcCX/IPm8ugxgTsOrkfBtYw4hIFcEaHflFy5KAoGf6o FpnkDrmayO97yAwGLY38 =Z5JN -----END PGP SIGNATURE----- |
Modified client/1.0/neutral/pkgr_upload.eagle from [de331db2a1] to [da6cc3acc8].
︙ | ︙ | |||
33 34 35 36 37 38 39 40 41 42 43 44 45 46 | [file tail [info nameofexecutable]]\ [file tail [info script]] \[apiKey\] \[name\] \[version\] \[language\]\ \[fileName1\] ... \[fileNameN\]" exit 1 } # # NOTE: Figure out the fully qualified path to the current script file. # If necessary, add it to the auto-path for the interpreter. The # necessary supporting packages (i.e. the Package Repository and # other support packages) that are assumed to exist in the same # directory as the current script file. # | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 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 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 190 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 391 392 393 | [file tail [info nameofexecutable]]\ [file tail [info script]] \[apiKey\] \[name\] \[version\] \[language\]\ \[fileName1\] ... \[fileNameN\]" exit 1 } # # NOTE: This procedure sets up the default values for all configuration # parameters used by the package uploader client. The script # argument is the fully qualified path and file name for the script # being evaluated. # proc setupUploadVars { script } { # # NOTE: What is the fully qualified path to the directory containing the # checkout for the package client? # variable checkoutDirectory if {![info exists checkoutDirectory]} then { set checkoutDirectory [file dirname $script] } # # NOTE: The command to use when attempting to stage package files using # Fossil. # variable fossilAddCommand; # DEFAULT fossil add {${fileName}} if {![info exists fossilAddCommand]} then { set fossilAddCommand {fossil add {${fileName}}} } # # NOTE: The command to use when attempting to commit package files using # Fossil. # variable fossilCommitCommand; # DEFAULT fossil commit ... if {![info exists fossilCommitCommand]} then { set fossilCommitCommand {fossil commit -m {${comment}}\ --branch {${branch}} --user anonymous --chdir \ {${checkoutDirectory}} --no-prompt} } # # NOTE: The regular expression pattern used when attempting to verify # that Fossil committed a set of files. # variable fossilCommitPattern; # DEFAULT: {^New_Version: ([0-9a-f]{40})$} if {![info exists fossilCommitPattern]} then { set fossilCommitPattern {^New_Version: ([0-9a-f]{40})$} } } # # NOTE: This procedure returns a string value, formatted for use within a # script block being processed by the [string map] command. The # value argument is the string value to format. No return value is # reserved to indicate an error. This procedure may not raise any # script errors. # proc formatStringMapValue { value } { if {[string length $value] == 0} then { return \"\" } set list [list $value] if {$value eq $list} then { return $value } else { return $list } } # # NOTE: This procedure counts the common path components for two paths. The # count is returned, zero if there are no common path components. The # path1 and path2 arguments are the paths to compare. This procedure # may not raise script errors. # proc countCommonPathParts { path1 path2 } { set parts1 [file split $path1] set length1 [llength $parts1] set parts2 [file split $path2] set length2 [llength $parts2] set length [expr {min($length1, $length2)}] for {set index 0} {$index < $length} {incr index} { set part1 [lindex $parts1 $index] set part2 [lindex $parts2 $index] if {$part1 ne $part2} then { return $index } } return $length } # # NOTE: This procedure processes a list of (fully?) qualified file names and # tries to determine their common containing directory, if any. The # fileNames argument is the list of (fully?) qualified file names to # process. This procedure may not raise script errors. If there is # no common containing directory, an empty string is returned. # proc getCommonContainingDirectory { fileNames } { set length [llength $fileNames] if {$length == 0} then { return "" } set oldFileName [lindex $fileNames 0] if {$length == 1} then { return [file dirname $oldFileName] } set minimumCount 0 for {set index 1} {$index < $length} {incr index} { set newFileName [lindex $fileNames $index] set newCount [countCommonPathParts $oldFileName $newFileName] if {$newCount == 0} then { return "" } if {$minimumCount == 0 || $newCount < $minimumCount} then { set oldFileName $newFileName set minimumCount $newCount } } if {$minimumCount == 0} then { return "" } incr minimumCount -1 return [eval file join [lrange [file split $oldFileName] 0 $minimumCount]] } # # NOTE: This procedure attempts to process a list of (fully?) qualified file # names and return the corresponding list of relative file names. The # fileNames argument is the list of (fully?) qualified file names to # process. The maximumLevels argument is the maximum path depth that # is allowed for all file names. This procedure may raise script # errors. # proc getRelativeFileNames { fileNames maximumLevels } { set directory [getCommonContainingDirectory $fileNames] set directoryParts [file split $directory] set fileNameIndex [expr {[llength $directoryParts] - 1}] if {$fileNameIndex < 0} then { error [appendArgs \ "invalid containing directory \"" $directory \ "\": cannot go up one level"] } set relativeFileNames [list] foreach fileName $fileNames { set fileNameParts [lrange \ [file split $fileName] $fileNameIndex end] if {$maximumLevels > 0 && \ [llength $fileNameParts] > $maximumLevels} then { error [appendArgs \ "depth for file name \"" $fileName \ "\" exceeds maximum (" $maximumLevels )] } set relativeFileName [eval file join $fileNameParts] if {[string length $relativeFileName] == 0 || \ [file pathtype $relativeFileName] ne "relative"} then { error [appendArgs \ "bad file name \"" $relativeFileName "\", not relative"] } lappend relativeFileNames $relativeFileName } return $relativeFileNames } # # NOTE: This procedure attempts to create a script chunk that appends the # specified list of file names to a list variable. The fileNames # argument is the list of (fully?) qualified file names to append to # the list variable. The maximumLevels argument is the maximum path # depth that is allowed for all file names. This procedure may raise # script errors. # proc getScriptChunkForFileNames { fileNames maximumLevels } { set result "" set relativeFileNames [getRelativeFileNames $fileNames $maximumLevels] foreach relativeFileName $relativeFileNames { if {[string length $result] > 0} then { append result \n } append result { lappend fileNames [file join } append result [file split $relativeFileName] append result \] } return $result } # # NOTE: This procedure creates and returns a script block designed for use # with the package repository server in order to download and provide # a package consisting of a set of files. The language argument must # be the literal string "eagle" or the literal string "tcl". 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 "eagle". The platform argument must be an # empty string -OR- one of the literal strings "neutral", "win32-arm", # "win32-x86", "win64-arm64", "win64-ia64", or "win64-x64". The # fileNames argument is the list of (fully?) qualified file names to # be downloaded when the associated package is being provided. The # options argument is reserved for future use, it should be an empty # list. # # <public> proc createRepositoryScript { language version platform fileNames options } { ::PackageDownloader::verifyLanguageAndVersion $language $version isClient return [string trim [string map [list \r\n \n \ %language% [formatStringMapValue $language] \ %version% [formatStringMapValue $version] \ %platform% [formatStringMapValue $platform] \ %backslash% \\ %ns% ::PackageDownloader %fileNames% \ [getScriptChunkForFileNames $fileNames 2]] { apply [list [list] { package require Eagle.Package.Downloader %ns%::resetCookieAndLoginSimple set fileNames [list] %fileNames% set options [list %backslash% -persistent false -usePgp true -useAutoPath true] %ns%::downloadFiles %language% %version% %platform% $fileNames $options %ns%::logoutAndResetCookie }] }]] } # # NOTE: This procedure attempts to stage the specified package files using # Fossil. The fileNames argument is a list of (fully?) qualified # local file names to stage. # # <public> proc stagePackageFiles { language version platform fileNames } { variable checkoutDirectory variable fossilAddCommand set relativeFileNames [getRelativeFileNames $fileNames] set savedPwd [pwd]; cd $checkoutDirectory foreach fileName $fileNames relativeFileName $relativeFileNames { file mkdir [file join \ $language $version $platform [file dirname $relativeFileName]] file copy $fileName $relativeFileName set fileName $relativeFileName if {[isEagle]} then { set fileName [::PackageRepository::formatExecArgument $fileName] if {[catch { eval exec -success Success [subst $fossilAddCommand] } error]} then { cd $savedPwd error [appendArgs \ "failed to stage file \"" $fileName "\": " $error] } } else { if {[catch { eval exec [subst $fossilAddCommand] } error]} then { cd $savedPwd error [appendArgs \ "failed to stage file \"" $fileName "\": " $error] } } } cd $savedPwd } # # NOTE: This procedure attempts to commit the staged package files to the # remote package file repository using Fossil. The varName argument # is the name of a scalar variable in the context of the immediate # caller that will receive the resulting Fossil check-in identifier. # # <public> proc commitPackageFiles { varName } { variable checkoutDirectory variable fossilCommitCommand variable fossilCommitPattern set branch ""; # TODO: Figure out a good branch. set comment ""; # TODO: Figure out a good comment. if {[isEagle]} then { if {[catch { eval exec -nocarriagereturns -stdout output -stderr error \ [subst $fossilCommitCommand] } result] == 0} then { set result [appendArgs $output $error] } else { return false } } else { if {[catch { eval exec [subst $fossilCommitCommand] } result]} then { return false } } if {[string length $varName] > 0} then { upvar 1 $varName checkin } if {![info exists result] || \ ![regexp -line -- $fossilCommitPattern $result dummy checkin]} then { return false } return true } # # NOTE: Figure out the fully qualified path to the current script file. # If necessary, add it to the auto-path for the interpreter. The # necessary supporting packages (i.e. the Package Repository and # other support packages) that are assumed to exist in the same # directory as the current script file. # |
︙ | ︙ | |||
63 64 65 66 67 68 69 | # package. # namespace eval ::PackageRepository { variable verboseUriDownload true } # | > | | > > > > > > > > > > > > > > > > > > > > > > > > > | 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 | # package. # namespace eval ::PackageRepository { variable verboseUriDownload true } # # NOTE: This package requires both the package repository and downloader # client packages. # package require Eagle.Package.Downloader # # NOTE: This package requires that support for namespaces, which is an # optional feature of Eagle, must be enabled. # if {[isEagle] && ![namespace enable]} then { error "namespaces must be enabled for this package" } # # NOTE: Attempt to read optional settings file now. This may override # 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. # setupUploadVars [info script] # # NOTE: Provide the package to the interpreter. # package provide Eagle.Package.Uploader \ [expr {[isEagle] ? [info engine PatchLevel] : "1.0"}] # # NOTE: Verify that the number of command line arguments meets the basic # requirements of this tool. # if {[info exists ::argv] && [llength $::argv] >= 5} then { # |
︙ | ︙ |
Modified client/1.0/neutral/pkgr_upload.eagle.asc from [60f01e4cc7] to [62a30ceb9e].
1 2 3 4 | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Eagle Package Repository | | | | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Eagle Package Repository iQIcBAABCAAGBQJYVvfzAAoJEFAslq9JXcLZ3KYP/1ziIWg74l8Xat7PICttqWra 2eFS6x2/fJUK0sqol3pBDxNgn6PfQEFNeJOtP/FlLe7NCG2oOCcIZGuYzGQmZv9u UAQQiV6J6Tzn4ZQXETVcKFFkIZ8VhemK3BBuw4omSPogHCHTX7LiVAmsYjs6krhM q5UOuswqOidWBWvbaUrkq3SWrtYPj+M4oiNlpA3AjEcn/UePiag60jQi2ZJF+GaN cMa5iTHYBWPlnqjlXPOIEOJ4AUHULo9LwJtjkXPIqYNjuVyTJXuO5sRy8yTWIv8C FScTt6PS/ds5Yj6LMNsRDII9/broj04kb7eZt3LIruIxT+Cni0HXqfwydlHBBgng FgniTiWR6hM8TSOPH18jxjuZ8Cb3ML6Tb/OUul1QWZOrLz/RYszVRgbaC6Y3Z8Ga lVYdVXo247UvRwYMkgbSeVKEqhwv/prIh44Ii33cYqMGGRReV7/vAfxB8WXWTQBZ QQ96Z93LsP3lujXwecQQPfb+uBzcPvlFrwmWHmMjsQ/q09BIPbc+gCV0UmfMcax6 Lb9S/QNFWQ4CbjptpdiD/1JfSAwqLOuThQdCUGaQq+LPs297vMpmt2frL9gC7d3h /DmEGMMylse2852qFdHYCaWw4Yr8Sgn+lZ9eXuaqY0FCGjRTgTz5CR5f2JylY+mH Mhm7F3uErgDn97Jp/qht =QWS0 -----END PGP SIGNATURE----- |
Modified client/1.0/neutral/pkgr_upload.eagle.harpy from [1d2925f0b5] to [cec3f80607].
︙ | ︙ | |||
17 18 19 20 21 22 23 | 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> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | 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> <Id>57abf613-80dc-4e9a-b1bd-c0a6dac4e16f</Id> <HashAlgorithm>SHA512</HashAlgorithm> <EntityType>Script</EntityType> <TimeStamp>2016-12-18T20:55:40.0390625Z</TimeStamp> <Duration>-1.00:00:00</Duration> <Key>0x9559f6017247e3e2</Key> <Signature> kjBzG5ZFA4Fw3Ox9xOzdvtBZEYrN/7+NpRMQ4eo60ipV7wN8UZxnPa5eONDCutHdJMx0LauQ/ipF 64xKZ4VVeXIjJdVRvm1zPlyegXJrqlMoINXqCtP5cEX1ksICE9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U6rscKtclLHPfl5GGWmMv42ZbhPugj2fKSGksYy7G8Z/Dk/QnjPZC3vxxPqsFHfux1mrWZ JZ3Uzz1a3rXlHybOqlkol6XUjwVCqg6n8w0R5/mNQVd9dRlqK4VduygkwZWXke1za5Diyb+ijT+Q 0pd38QH4hHSDKk61CqyojAYnoOov+On+1L20B6W1QsfiAXkxdOwCm2S6bhdHz8UrXI3j05hu3ZG2 yn6crlEoazGMhZf5bM3rBzkCV1MTtQmquRku//xkUXdjXADLoe73br+E6dpP9AS0w57IZC1uyH4g wp/eqVuK3t9pNHPqbveCm0vUG5yb3pdtNcrqHpXVjBa/mSmEPMG/6xdxlZjL1OXMq3Gr/6HydT/8 JBk9MdoXfgRg70QMoHJeoqf10NsrF1H06aindKQs99omWnymatRki8wcXszCl3BsLTjezk0= </Signature> </Certificate> |
Modified client/1.0/neutral/pkgr_upload.eagle.harpy.asc from [f19af08e58] to [1e3502e434].
1 2 3 4 | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Eagle Package Repository | | | | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Eagle Package Repository iQIcBAABCAAGBQJYVvf0AAoJEFAslq9JXcLZ2B4QAIOriM66ke/AwFa96RpEYs8g YdiGg1k5ZpCRc8uVtPYcJnjtc1g325tf73jw7s5I/SThsmBSEFmIWKJwh0HVR6b2 m2xL0hS+D1ba5+sa6aBUrmn7jbw4i1z9+Rb4hqXacBhIyMaT5qRSN9WQl+mblBML cVU9NKYc8ifAmayqiOOvV3vcf3n2V+jiyjEyCw8NVT441JuPIm9jPkTP0oDdy/y6 l5a2TEvAIq1o9ovEXBkc5NJP8hC+haKdSAZId6q01/aY3L3ObRYCrHs/2iTygWM0 QmtvP9VPdjfQ6A7u4b1P5EBzQfFvvkOnbi9R2gb/xA06ZqC/heDtxCfl9xL1T8GH 4vl0+cENxY61G9avc5v0AoEQY+XFvhJpU5vL2PSpw0ZMFmQE4G50SuooD/pA+t8X ak+YFoLw2tVnGyDgO+CilF6cP/h1mY+dWvw6hx8aLQeDlNAWRHNco0wzaxDRhJJn KNvtwQqO2xGEnDbHkkA3ka0nyUYfyOnJnD+LGQKgKqUm+yMywChlK9NOtbdNrLce i8evvNEudOrQY1TLHNkGpJ4fP6LRQSU33MplPMYnYTyeqiJFpNsHjWWhk4cWxDcx oprP4sumZuZEHGXLXKXP2/V8/XDPQPuYCDARbkvO2YS84ZG1FadkZ6MkyDiIunSn +hD0AK7acs6BQTWdNQFf =Q5nF -----END PGP SIGNATURE----- |