Browse Source

Remove sources list (#3039)

Nate 7 years ago
parent
commit
85edd0654f
1 changed files with 6 additions and 0 deletions
  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
                 ##########################################################
                 ##########################################################