mudler / luet

:package: :whale: 0-dependency Container-based Package Manager using SAT solver and QLearning
https://luet.io
GNU General Public License v3.0
261 stars 24 forks source link

cmd/database/create: Avoid creation of the same package multiple times #222

Closed geaaru closed 3 years ago

geaaru commented 3 years ago

This is what happens now if it's already present:

$> luet database create Digest-HMAC-dev-perl-1.30.0-r1.metadata.yaml 
 Package dev-perl/Digest-HMAC-1.30.0-r1  already present.
mudler commented 3 years ago

Tests are failing genuinely

geaaru commented 3 years ago

:'( it's weird, i only avoid the creation of the same package... i will check the tests.

codecov-commenter commented 3 years ago

Codecov Report

Merging #222 (a5d71b6) into develop (654b5b4) will decrease coverage by 2.41%. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #222      +/-   ##
===========================================
- Coverage    48.22%   45.80%   -2.42%     
===========================================
  Files           45       45              
  Lines         6078     6078              
===========================================
- Hits          2931     2784     -147     
- Misses        2595     2788     +193     
+ Partials       552      506      -46     
Impacted Files Coverage Δ
pkg/installer/client/docker.go 0.00% <0.00%> (-57.84%) :arrow_down:
pkg/installer/repository_docker.go 0.00% <0.00%> (-48.82%) :arrow_down:
pkg/installer/repository.go 47.42% <0.00%> (-8.28%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 654b5b4...a5d71b6. Read the comment docs.

mudler commented 3 years ago

Thanks!