From 9a3d4c7b25f344a64e103bbbb77c02a6d15dd1dc Mon Sep 17 00:00:00 2001 From: Guan Junchun Date: Wed, 21 Mar 2012 13:55:34 +0800 Subject: [PATCH] fix bugs: gbs import XXX.spec error when the dir of spec file contains contents --- gitbuildsys/cmd_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitbuildsys/cmd_import.py b/gitbuildsys/cmd_import.py index a8192ba..9a7fa2a 100644 --- a/gitbuildsys/cmd_import.py +++ b/gitbuildsys/cmd_import.py @@ -116,7 +116,7 @@ def do(opts, args): packagingfiles = glob.glob('%s/*' % basedir) for f in packagingfiles: - if f.endswith(os.path.basename(tarball)): + if f.endswith(os.path.basename(tarball)) or not os.path.isfile(f): continue shutil.copy(f, packagingdir) -- 2.7.4