Skip to content

Commit

Permalink
Add warning when removing dist where name does not match provided spe…
Browse files Browse the repository at this point in the history
…c name
  • Loading branch information
hythm7 committed Nov 22, 2023
1 parent 637c8b3 commit ad90617
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Pakku/Command/Remove.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ multi method fly ( 'remove', :@spec!, Str :$from ) {

sink @dist.map( -> $dist {

log '🐞', header => 'RMV', msg => ~$dist unless $dist.meta<name> ~~ $spec.name;

$repo.uninstall: $dist;

log '🧚', header => 'RMV', msg => ~$dist;
Expand Down

0 comments on commit ad90617

Please sign in to comment.