From dd377b07a68cf598d25ffa1d784d537516952fb1 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Thu, 20 Jan 2011 20:38:36 +0100 Subject: [PATCH] - fixed #663270 ("osc importsrcpkg --commit fails") --- osc/commandline.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 47b443a5..b7722eba 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5420,7 +5420,6 @@ Please submit there instead, or use --nodevelproject to force direct submission. 'The automatic detection failed' sys.exit(1) - olddir = os.getcwd() if conf.config['do_package_tracking']: createPackageDir(os.path.join(project.dir, pac), project) else: @@ -5453,9 +5452,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. p = Package(os.path.join(project_dir, pac)) if len(p.filenamelist) == 0 and opts.commit: print 'Adding files to working copy...' - addFiles(glob.glob('*')) + addFiles(glob.glob('%s/*' % os.path.join(project_dir, pac))) if conf.config['do_package_tracking']: - os.chdir(olddir) project.commit((pac, )) else: p.update_datastructs()