params.append("--pristine-tar")
if path.endswith('.src.rpm') or path.endswith('.spec'):
- params.append("--no-patch-import")
- if gbp_import_srpm(params):
+ ret = gbp_import_srpm(params)
+ if ret == 2:
+ msger.warning("Importing of patches into packaging branch failed! "
+ "Please import manually (apply and commit to git, "
+ "remove files from packaging dir and spec) in order "
+ "to enable automatic patch generation.")
+ elif ret:
msger.error("Failed to import %s" % path)
else:
if args.no_merge:
os.path.join(srcdir, 'bluez.spec')]), None)
repo = GitRepository("./bluez")
eq_(repo.get_local_branches(), ['master', 'pristine-tar', 'upstream'])
- eq_(repo.get_tags(), ['upstream/4.87', 'vendor/4.87-1'])
+ # No packging tag as patch-import fails
+ eq_(repo.get_tags(), ['upstream/4.87'])
+ eq_(len(repo.get_commits(until='master')), 2)
#raise Exception(os.listdir('./bluez'))