From ab051b4620832ef8e2b4dd134b1b61241f53814e Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Wed, 18 Dec 2019 22:43:58 +0100 Subject: [PATCH 1/1] get: remove extra src_repo We already have a src_repo from the with statement, no need to instantiate another one (that won't even be closed properly). Signed-off-by: Johannes Berg Reviewed-by: Rob Browning Tested-by: Rob Browning --- cmd/get-cmd.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/get-cmd.py b/cmd/get-cmd.py index 809464d..c2fc547 100755 --- a/cmd/get-cmd.py +++ b/cmd/get-cmd.py @@ -586,9 +586,6 @@ def main(): with dest_repo as dest_repo: with LocalRepo(repo_dir=src_dir) as src_repo: with dest_repo.new_packwriter(compression_level=opt.compress) as writer: - - src_repo = LocalRepo(repo_dir=src_dir) - # Resolve and validate all sources and destinations, # implicit or explicit, and do it up-front, so we can # fail before we start writing (for any obviously -- 2.39.2