From df8d70b5adda5b129f9212442ca36490edc1d5df Mon Sep 17 00:00:00 2001 From: Michal Marek Date: Mon, 2 Nov 2009 21:02:58 +0000 Subject: [PATCH] linkpac: default to cicount=copy if the link is in the same project, to avoid one gotcha when building kernels --- osc/commandline.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 043256bd..a3d83377 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1153,6 +1153,11 @@ Please submit there instead, or use --nodevelproject to force direct submission. print >>sys.stderr, 'Error: source and destination are the same.' return 1 + if src_project == dst_project and not opts.cicount: + # in this case, the user usually wants to build different spec + # files from the same source + opts.cicount = "copy" + if opts.current: rev = show_upstream_rev(conf.config['apiurl'], src_project, src_package)