File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1099,12 +1099,16 @@ def add_installation_metadata(installed: InstInfo,
1099
1099
updating the plugin."""
1100
1100
install_dir = Path (installed .source_loc )
1101
1101
assert install_dir .is_dir ()
1102
+ if urlparse (original_request .source_loc ).scheme in ['http' , 'https' ]:
1103
+ abs_source_path = original_request .source_loc
1104
+ else :
1105
+ abs_source_path = Path (original_request .source_loc ).resolve ()
1102
1106
data = ('installation date\n '
1103
1107
f'{ datetime .date .today ().isoformat ()} \n '
1104
1108
'installation time\n '
1105
1109
f'{ int (time .time ())} \n '
1106
1110
'original source\n '
1107
- f'{ original_request . source_loc } \n '
1111
+ f'{ abs_source_path } \n '
1108
1112
'requested commit\n '
1109
1113
f'{ original_request .commit } \n '
1110
1114
'installed commit\n '
You can’t perform that action at this time.
0 commit comments