瀏覽代碼

Remove sources list (#3039)

Nate 8 年之前
父節點
當前提交
85edd0654f
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      toolset/benchmark/benchmarker.py

+ 6 - 0
toolset/benchmark/benchmarker.py

@@ -629,6 +629,12 @@ class Benchmarker:
                     except OSError:
                         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
                 ##########################################################