Explorar o código

Remove sources list (#3039)

Nate %!s(int64=8) %!d(string=hai) anos
pai
achega
85edd0654f
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      toolset/benchmark/benchmarker.py

+ 6 - 0
toolset/benchmark/benchmarker.py

@@ -629,6 +629,12 @@ class Benchmarker:
                     except OSError:
                     except OSError:
                         print "Failed to remove contents of /tmp directory."
                         print "Failed to remove contents of /tmp directory."
 
 
+    
+                ##########################################################
+                # Remove apt sources to avoid pkg errors and collisions
+                ##########################################################
+                os.system("sudo rm -rf /etc/apt/sources.list.d/*")
+
                 ##########################################################
                 ##########################################################
                 # Save results thus far into the latest results directory
                 # Save results thus far into the latest results directory
                 ##########################################################
                 ##########################################################