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,
10991099 updating the plugin."""
11001100 install_dir = Path (installed .source_loc )
11011101 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 ()
11021106 data = ('installation date\n '
11031107 f'{ datetime .date .today ().isoformat ()} \n '
11041108 'installation time\n '
11051109 f'{ int (time .time ())} \n '
11061110 'original source\n '
1107- f'{ original_request . source_loc } \n '
1111+ f'{ abs_source_path } \n '
11081112 'requested commit\n '
11091113 f'{ original_request .commit } \n '
11101114 'installed commit\n '
You can’t perform that action at this time.
0 commit comments