@@ -332,7 +332,7 @@ def extract_twice(location, target_dir, extractor1, extractor2):
332332 abs_location = os .path .abspath (os .path .expanduser (location ))
333333 abs_target_dir = compat .unicode (os .path .abspath (os .path .expanduser (target_dir )))
334334 # extract first the intermediate payload to a temp dir
335- temp_target = compat .unicode (fileutils .get_temp_dir (prefix = 'scancode -extract-' ))
335+ temp_target = compat .unicode (fileutils .get_temp_dir (prefix = 'extractcode -extract-' ))
336336 warnings = extractor1 (abs_location , temp_target )
337337 if TRACE :
338338 logger .debug ('extract_twice: temp_target: %(temp_target)r' % locals ())
@@ -366,15 +366,15 @@ def extract_with_fallback(location, target_dir, extractor1, extractor2):
366366 abs_location = os .path .abspath (os .path .expanduser (location ))
367367 abs_target_dir = compat .unicode (os .path .abspath (os .path .expanduser (target_dir )))
368368 # attempt extract first to a temp dir
369- temp_target1 = compat .unicode (fileutils .get_temp_dir (prefix = 'scancode -extract1-' ))
369+ temp_target1 = compat .unicode (fileutils .get_temp_dir (prefix = 'extractcode -extract1-' ))
370370 try :
371371 warnings = extractor1 (abs_location , temp_target1 )
372372 if TRACE :
373373 logger .debug ('extract_with_fallback: temp_target1: %(temp_target1)r' % locals ())
374374 fileutils .copytree (temp_target1 , abs_target_dir )
375375 except :
376376 try :
377- temp_target2 = compat .unicode (fileutils .get_temp_dir (prefix = 'scancode -extract2-' ))
377+ temp_target2 = compat .unicode (fileutils .get_temp_dir (prefix = 'extractcode -extract2-' ))
378378 warnings = extractor2 (abs_location , temp_target2 )
379379 if TRACE :
380380 logger .debug ('extract_with_fallback: temp_target2: %(temp_target2)r' % locals ())
@@ -396,7 +396,7 @@ def try_to_extract(location, target_dir, extractor):
396396 """
397397 abs_location = os .path .abspath (os .path .expanduser (location ))
398398 abs_target_dir = compat .unicode (os .path .abspath (os .path .expanduser (target_dir )))
399- temp_target = compat .unicode (fileutils .get_temp_dir (prefix = 'scancode -extract1-' ))
399+ temp_target = compat .unicode (fileutils .get_temp_dir (prefix = 'extractcode -extract1-' ))
400400 warnings = []
401401 try :
402402 warnings = extractor (abs_location , temp_target )
0 commit comments