File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,12 +251,16 @@ def print_no_need():
251251
252252
253253def uninstall (args ):
254- ver = ffdl .ffmpeg_version ()
255- if ver is None :
254+ # find existing version
255+ ver_info = ffdl .ffmpeg_version ()
256+ if ver_info is None :
256257 print ("\n No FFmpeg build has been downloaded." )
257258 return
258259
259- print (f"Found existing FFmpeg installation: { compose_version_spec (* ver )} " )
260+ current_version , _ , current_build_type = ver_info
261+ cur_ver_spec = compose_version_spec (current_version , current_build_type )
262+
263+ print (f"Found existing FFmpeg installation: { cur_ver_spec } " )
260264 print (" Would remove:" )
261265 print (f" { os .path .join (ffdl .get_dir (), 'ffmpeg' , '*' )} " )
262266
@@ -270,7 +274,7 @@ def uninstall(args):
270274 # remove the ffmpeg directory
271275 ffdl .remove (ignore_errors = False )
272276
273- print (f" Successfully uninstalled FFmpeg: { compose_version_spec ( * ver ) } " )
277+ print (f" Successfully uninstalled FFmpeg: { cur_ver_spec } " )
274278
275279
276280def show (args ):
You can’t perform that action at this time.
0 commit comments