Commit 80a77f4
committed
pacman-helper quick_add: allow for concurrent deployments
It is completely normal to have multiple concurrent deployments, say,
`mingw-w64-curl` and `mingw-w64-git-extra`. This means that
`pacman-helper quick_add` might update a branch locally that cannot be
pushed because another deployment has already pushed the branch in the
meantime.
This is not a problem, as long as the deployments touch separate
packages. In that instance, we simply need to revert the changes to the
package database, then rebase to the latest commit from the public
`pacman-repo` repository, and try again.
Note: Currently this situation cannot even occur because we're doing the
dual deployment both to Azure Blobs as well as to `pacman-repo`, and the
former is protected against concurrent deployments via the lease
mechanism.
Nevertheless, it is a good idea to make the code ready for the day when
we no longer deploy to Azure Blobs.
Signed-off-by: Johannes Schindelin <[email protected]>1 parent 94dde8c commit 80a77f4
1 file changed
+56
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 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 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
407 | 461 | | |
408 | 462 | | |
409 | 463 | | |
| |||
0 commit comments