mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-24 00:56:15 +01:00
- fixed #663270 ("osc importsrcpkg --commit fails")
This commit is contained in:
parent
507567be71
commit
dd377b07a6
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user