diff --git a/debian/patches/remove-upgrade-option.patch b/debian/patches/remove-upgrade-option.patch new file mode 100644 index 0000000..c808d28 --- /dev/null +++ b/debian/patches/remove-upgrade-option.patch @@ -0,0 +1,42 @@ +From: Sophie Brun +Date: Thu, 23 Jan 2020 15:00:59 +0100 +Subject: Remove upgrade option + +Last-Update: 2020-01-23 + +Description: don't allow upgrade with option. Package must be updated +with "apt". +--- + osrframework/launcher.py | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/osrframework/launcher.py b/osrframework/launcher.py +index fd499ab..eaf0935 100644 +--- a/osrframework/launcher.py ++++ b/osrframework/launcher.py +@@ -30,7 +30,7 @@ import osrframework.mailfy as mailfy + import osrframework.phonefy as phonefy + import osrframework.searchfy as searchfy + import osrframework.usufy as usufy +-import osrframework.upgrade as upgrade ++#import osrframework.upgrade as upgrade + + + EPILOG = """ +@@ -104,11 +104,11 @@ def get_parser(): + help="Looks for registered accounts with given nicknames.", + parents=[usufy.get_parser()] + ) +- subparser_upgrade = subcommands.add_parser( +- "upgrade", +- help="Updates the module.", +- parents=[upgrade.get_parser()] +- ) ++# subparser_upgrade = subcommands.add_parser( ++# "upgrade", ++# help="Updates the module.", ++# parents=[upgrade.get_parser()] ++# ) + + # About options + group_about = parser.add_argument_group('ABOUT ARGUMENTS', 'Showing additional information about this program.') diff --git a/debian/patches/series b/debian/patches/series index 90e83f8..74d9ce0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ remove-unused-logger-function.patch fix-getConfigPath-issue.patch remove-useless-requirements.patch +remove-upgrade-option.patch