aboutsummaryrefslogtreecommitdiff
path: root/license_protected_downloads/common.py
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2015-07-09 12:48:32 -0500
committerAndy Doan <andy.doan@linaro.org>2015-07-09 12:54:12 -0500
commit9a94e3bd21c527d22282b921706ac518b432e1df (patch)
tree0fc352104e1b8d76ef071280114c2c68741ee2a7 /license_protected_downloads/common.py
parent01b549354bd43f03ee5bf05cf44c2d7a6200baaa (diff)
buildinfo: remove need for search-path and full name2015.07
The last commit made full_file_name and search_path unused variables. Removing them simplifies the constructor. Change-Id: I2ac2d92ef1195df5294d07dad84ba98a3f4f4ae5
Diffstat (limited to 'license_protected_downloads/common.py')
-rw-r--r--license_protected_downloads/common.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/license_protected_downloads/common.py b/license_protected_downloads/common.py
index 23aff14..e800ec6 100644
--- a/license_protected_downloads/common.py
+++ b/license_protected_downloads/common.py
@@ -185,10 +185,7 @@ class Artifact(object):
def get_build_info(self):
buf = self.build_info_buffer
if buf:
- sp = fn = self.urlbase[1:]
- if not self.isdir():
- fn = sp + '/' + self.file_name
- return buildinfo.BuildInfoBase(fn, sp, buf)
+ return buildinfo.BuildInfoBase(self.file_name, buf)
def get_listing(self):
if self.isdir():