OSCRC_TEMPLATE = """[general]
apiurl = %(apiurl)s
plaintext_passwd=0
+use_keyring=0
+gnome_keyring=0
[%(apiurl)s]
user=%(user)s
passx=%(passwdx)s
# get 'name' and 'version' from spec file
name = utils.parse_spec(specfile, 'name')
version = utils.parse_spec(specfile, 'version')
+ if not name or not version:
+ msger.error('can\'t get correct name or version from spec file.')
if opts.base_obsprj is None:
# TODO, get current branch of git to determine it
srcdir = "%s-%s" % (name, version)
os.mkdir(srcdir)
- tarball = '%s-%s.tizen.tar.bz2' % (name, version)
+ tarball = '%s-%s-tizen.tar.bz2' % (name, version)
msger.info('archive git tree to tar ball: %s' % tarball)
tarfp = '%s/%s' % (workdir, tarball)
tar = tarfile.open(tarfp, 'w:bz2')
os.unlink(oscrcpath)
msger.info('local changes submitted to build server successfully')
msger.info('follow the link to monitor the build progress:\n'
- ' %s/project/show?project=%s' \
- % (APISERVER.replace('api', 'build'), target_prj))
+ ' %s/package/show?package=%s&project=%s' \
+ % (APISERVER.replace('api', 'build'), name, target_prj))