build: fix missing patch config dir error (#35451)
This commit is contained in:
parent
3eb593dfde
commit
8128fa6d85
1 changed files with 3 additions and 1 deletions
|
@ -2,12 +2,14 @@
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
|
|
||||||
from lib import git
|
from lib import git
|
||||||
|
|
||||||
|
|
||||||
def export_patches(dirs, dry_run):
|
def export_patches(dirs, dry_run):
|
||||||
for patch_dir, repo in dirs.items():
|
for patch_dir, repo in dirs.items():
|
||||||
|
if os.path.exists(repo):
|
||||||
git.export_patches(repo=repo, out_dir=patch_dir, dry_run=dry_run)
|
git.export_patches(repo=repo, out_dir=patch_dir, dry_run=dry_run)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue