Skip to content

Commit e8c4b7a

Browse files
committed
xcp-ng-dev: better name for the argument containing the source package
"build_local" is not properly descriptive any more in --help, now. Signed-off-by: Yann Dirson <[email protected]>
1 parent 3bc8d28 commit e8c4b7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xcp_ng_dev/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def buildparser():
100100
"Built RPMs and SRPMs will be in RPMS/ and SRPMS/ subdirectories. "
101101
"Any preexisting BUILD, BUILDROOT, RPMS or SRPMS directories will be removed first.")
102102
parser_build.add_argument(
103-
'build_local', nargs='?', default='.',
103+
'source_dir', nargs='?', default='.',
104104
help="Root path where SPECS/ and SOURCES are available. "
105105
"The default is the working directory")
106106
parser_build.add_argument(
@@ -160,7 +160,7 @@ def container(args):
160160
if hasattr(args, 'command') and args.command != []:
161161
docker_args += ["-e", "COMMAND=%s" % ' '.join(args.command)]
162162
if build:
163-
build_dir = os.path.abspath(args.build_local)
163+
build_dir = os.path.abspath(args.source_dir)
164164
docker_args += ["-v", f"{build_dir}:/home/builder/rpmbuild"]
165165
docker_args += ["-e", "BUILD_LOCAL=1"]
166166
print(f"Building directory {build_dir}")

0 commit comments

Comments
 (0)