fix synax error for distro

This commit is contained in:
2023-12-19 15:52:30 +08:00
parent 03a68da029
commit e17ec5a485

View File

@@ -133,7 +133,7 @@ class Command(sunhpc.commands.create.command):
mirrors = distro.getMirrors() mirrors = distro.getMirrors()
fullmirror = mirrors[0].getRollsPath() fullmirror = mirrors[0].getRollsPath()
# modify all dirs mode 755 # modify all dirs mode 755
os.system(r'find %s -type d ' % (fullmirror) + '-exec chmod -R 0755 {} \;') os.system(r'find %s -type d ' % (fullmirror) + r'-exec chmod -R 0755 {} \;')
if self.arch != arch and os.path.exists(dist): if self.arch != arch and os.path.exists(dist):
shutil.move(os.path.join(tempdist, arch), os.path.join(dist, arch)) shutil.move(os.path.join(tempdist, arch), os.path.join(dist, arch))