From 19f0903204e1d47774d84ab7f5c458f69ef574ad Mon Sep 17 00:00:00 2001
From: Andrej Shadura <andrew.shadura@collabora.co.uk>
Date: Fri, 13 May 2022 15:56:48 +0200
Subject: [PATCH] Drop dead and unused code

Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk>
---
 osc_plugin_dput/main.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/osc_plugin_dput/main.py b/osc_plugin_dput/main.py
index 29e107a..1ff6ed8 100644
--- a/osc_plugin_dput/main.py
+++ b/osc_plugin_dput/main.py
@@ -191,7 +191,6 @@ def do_dput(self, subcmd, opts, *args):
         # Remove old files, but only those that are part of the Debian package
         superseded = set()
         retained = set()
-        downloaded = set()
 
         for f in remote_file_list.keys():
             if f.endswith('.dsc'):
@@ -233,7 +232,7 @@ def do_dput(self, subcmd, opts, *args):
         os.symlink(dsc_file, f)
         package.addfile(f)
 
-        if opts.maintained_in_git and 'MAINTAINED_IN_GIT.txt' not in retained:
+        if opts.maintained_in_git:
             open('MAINTAINED_IN_GIT.txt', 'w+').close()
             package.addfile('MAINTAINED_IN_GIT.txt')
 
@@ -242,9 +241,6 @@ def do_dput(self, subcmd, opts, *args):
         # the source package
         msg = f
 
-        for f in downloaded:
-            package.addfile(f)
-
         if changes is not None:
             f = dsc_or_changes_file.name
             os.symlink(dsc_or_changes_file, f)
-- 
GitLab