misc: fix spelling of "cleaning"
This commit is contained in:
parent
87ba9686b4
commit
bc6745e72d
|
@ -382,10 +382,10 @@ def clean_git_on_exit(git_project_path):
|
|||
def main():
|
||||
new = 1
|
||||
options, args = parse_cmdline()
|
||||
for method in options.cleanning:
|
||||
for method in options.cleaning:
|
||||
clean(method)
|
||||
|
||||
if options.cleanning:
|
||||
if options.cleaning:
|
||||
sys.exit(0)
|
||||
|
||||
init()
|
||||
|
|
|
@ -50,9 +50,9 @@ def parse_cmdline():
|
|||
help="debian folder to use for build (Default: debian-DIST or debian)")
|
||||
parser.add_option("-c", "--clean",
|
||||
action="extend", type="string",
|
||||
dest="cleanning", metavar='CLEANNING_METHODS',
|
||||
dest="cleaning", metavar='CLEANING_METHODS',
|
||||
default=[],
|
||||
help="CLEANNING_METHODS: git, deb, archives, smart and / or all")
|
||||
help="CLEANING_METHODS: git, deb, archives, smart and / or all")
|
||||
parser.add_option("-r", "--repository",
|
||||
action="extend", type="string",
|
||||
default=[],
|
||||
|
@ -61,11 +61,11 @@ def parse_cmdline():
|
|||
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
if len(args) != 1 and not options.cleanning:
|
||||
if len(args) != 1 and not options.cleaning:
|
||||
parser.error("you should select one GIT_REPOSITORY_NAME")
|
||||
|
||||
if len(args) and options.cleanning:
|
||||
parser.error("you shouldn't use argument when cleanning")
|
||||
if len(args) and options.cleaning:
|
||||
parser.error("you shouldn't use argument when cleaning")
|
||||
|
||||
if len(args) and not options.distrib:
|
||||
parser.error("you should set option --distribution")
|
||||
|
|
Loading…
Reference in New Issue