From a7d161cfac28d2ffff12fb375dbb7b0ae3db6713 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 22 Jun 2017 07:09:14 -0600 Subject: [PATCH] raco pkg update: fix `--update-deps` and cross-scope deps When `--update-deps` (which is implied by `--all`) was used on user-scope packages that depend on installation-scope packages, the installation-scope dependencies were treated as missing, which forced an update of the user-scope packages. Check both scopes for dependencies. Closes #1730 --- pkgs/racket-test/tests/pkg/test-catalogs-api.rkt | 2 +- .../tests/pkg/test-pkgs/pkg-test2/info.rkt | 3 ++- racket/collects/pkg/private/install.rkt | 12 ++++++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/racket-test/tests/pkg/test-catalogs-api.rkt b/pkgs/racket-test/tests/pkg/test-catalogs-api.rkt index 521063f96b..fc987ae7c8 100644 --- a/pkgs/racket-test/tests/pkg/test-catalogs-api.rkt +++ b/pkgs/racket-test/tests/pkg/test-catalogs-api.rkt @@ -43,4 +43,4 @@ (define-values (cksum2 mods2 deps2) (get-pkg-content (pkg-desc "pkg-test2" 'name #f #f #f))) - (check-equal? deps2 '("pkg-test1"))) + (check-equal? (sort deps2 string