aboutsummaryrefslogtreecommitdiffstats
path: root/packaging-tools/swap_repository.py
diff options
context:
space:
mode:
authorSergio Ahumada <sahumada@blackberry.com>2014-05-12 13:58:59 +0200
committerSergio Ahumada <sahumada@blackberry.com>2014-05-14 23:24:13 +0200
commit22f05f402aff5901439b48f9412d65222ffbf8ae (patch)
treedcf7e4dea8dd3cd8269f07c909702725b7088031 /packaging-tools/swap_repository.py
parent812b87bb8706ed817f509dda73db66b40c84345f (diff)
swap_repository: Fix minor warnings reported by pylint
W: 51,0: Unused import gmtime W: 51,0: Unused import strftime W:100,51:determine_dest_dir: Unused argument 'component_name' Change-Id: I8d631e107ad4b5d818a508ce87c0a7b21193167d Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
Diffstat (limited to 'packaging-tools/swap_repository.py')
-rw-r--r--packaging-tools/swap_repository.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/packaging-tools/swap_repository.py b/packaging-tools/swap_repository.py
index 64846fa8e..ad9572e85 100644
--- a/packaging-tools/swap_repository.py
+++ b/packaging-tools/swap_repository.py
@@ -48,7 +48,6 @@ import argparse
import difflib
import binascii
import shutil
-from time import gmtime, strftime
import bldinstallercommon
QT_SDK_REPOSITORY_NAME = 'qtsdkrepository'
@@ -98,7 +97,7 @@ def get_directory_list(base_dir, search_match):
###############################
# function
###############################
-def determine_dest_dir(item, destination_base_dir, component_name):
+def determine_dest_dir(item, destination_base_dir):
start_index = item.index(QT_SDK_REPOSITORY_NAME)
remainder = item[start_index:]
dest_start_index = destination_base_dir.index(QT_SDK_REPOSITORY_NAME)
@@ -133,7 +132,7 @@ def generate_match_list(source_match_list, dest_match_list, component_name, dest
not matches[0].endswith(component_name) or \
not is_platform_match(item, matches[0]):
print('*** No match found? Is this the first time the repo is being copied?')
- dest_dir = determine_dest_dir(item, destination_base_dir, component_name)
+ dest_dir = determine_dest_dir(item, destination_base_dir)
else:
dest_dir = matches[0]
swap_operation = SwapOperation()