Skip to content

Commit 87c6f31

Browse files
committed
Output URL to binary rpm file to download in debug mode
1 parent 812721f commit 87c6f31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

obs_maven/repo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def get_binary(self, path, target, mtime):
7777
"""
7878
Equivalent of osc.core.get_binary_file
7979
"""
80-
f = urllib.request.urlopen(self.get_repo_path(path))
80+
url = self.get_repo_path(path)
81+
logging.debug("Getting binary from: %s", url)
82+
f = urllib.request.urlopen(url)
8183
target_f = open(target, "wb")
8284
shutil.copyfileobj(f, target_f)
8385
target_f.close()

0 commit comments

Comments
 (0)