Commit ed27c641 authored by François Bailly's avatar François Bailly
Browse files

[updated script auto install]

parent 3cff70f9
......@@ -6,10 +6,11 @@ from robotpkg_tests import RobotpkgTests
arch_release_candidates= [ ('dynamic-graph-v3','rc-v3.2.2'),
('py-dynamic-graph-v3','devel'),
('sot-core-v3','rc-v3.3.1'),
('talos-simulation','devel'),
('sot-dynamic-pinocchio-v3','devel'),
('py-dynamic-graph-bridge-v3','devel'),
('roscontrol-sot','devel'),
('sot-talos','devel'),
('sot-talos','master'),
('talos-metapkg-ros-control-sot','devel')]
......
......@@ -2,7 +2,7 @@
import subprocess
import os
import socket
import scandir
#import scandir
from pathlib import Path
class RobotpkgTests:
......@@ -184,9 +184,9 @@ class RobotpkgTests:
"""
print(self.GREEN+'Creating the repositories'+self.NC)
dirname=self.ROBOTPKG_ROOT+'/'
os.makedirs(dirname,0o777)
os.makedirs(dirname,0o777,exist_ok=True)
dirname=self.ROBOTPKG_ROOT+'/install'
os.makedirs(dirname,0o777)
os.makedirs(dirname,0o777,exist_ok=True)
def cloning_robotpkg_main(self):
"""Clones the main robotpkg repository"""
......@@ -267,7 +267,7 @@ class RobotpkgTests:
os.chdir(checkoutdir_packagename)
# If it does then maybe this is not a git directory
folders=[f.path for f in scandir.scandir(checkoutdir_packagename) if f.is_dir()]
folders=[f.path for f in os.scandir(checkoutdir_packagename) if f.is_dir()]
for folder in folders:
if self.debug>3:
print("Going into: "+folder)
......@@ -312,7 +312,7 @@ class RobotpkgTests:
"""
bashcmd='git checkout '+branchname
checkoutdir_packagename=self.build_rpkg_checkout_package(packagename)
folders=[f.path for f in scandir.scandir(checkoutdir_packagename) if f.is_dir()]
folders=[f.path for f in os.scandir(checkoutdir_packagename) if f.is_dir()]
for folder in folders:
if self.debug>3:
print("Going into: "+folder)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment