From c7c3d36beffb97a1cb2c19078cc177e4bb286f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Sun, 26 Sep 2010 13:36:09 +0000 Subject: [PATCH] cli/build: If spec file is not given, fallback to ./pspec.xml --- pisi/cli/build.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pisi/cli/build.py b/pisi/cli/build.py index 3229fb5b..383b9b66 100644 --- a/pisi/cli/build.py +++ b/pisi/cli/build.py @@ -175,10 +175,6 @@ class Build(command.Command): ctx.ui.info(" %s" % format) return - if not self.args: - self.help() - return - self.init() if ctx.get_option('output_dir'): @@ -188,7 +184,7 @@ class Build(command.Command): ctx.ui.info(_('Outputting packages in the working directory.')) ctx.config.options.output_dir = '.' - for x in self.args: + for x in self.args or ["pspec.xml"]: if ctx.get_option('until'): pisi.api.build_until(x, ctx.get_option('until')) else: