File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 } " )
You can’t perform that action at this time.
0 commit comments