[ 已解决 ]OBS 网页服务和 osc 命令行出错

前几天第一次用OBS打包,照葫芦画瓢成功一次以后发现可能的不规范我的包里都出现了,于是就开始改。删除源码包放上_service文件、修改spec以后OBS网页上突然出来了这么一段

Files could not be expanded: service daemon error:
400 remote error: Error 

换osc,commit的时候又出来一段

File "/usr/bin/osc", line 26, in <module>
    r = babysitter.run(osccli)
  File "/usr/lib/python2.7/site-packages/osc/babysitter.py", line 60, in run
    return prg.main(argv)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 343, in main
    return self.cmd(args)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 366, in cmd
    retval = self.onecmd(argv)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 484, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 1214, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 4244, in do_commit
    prj.commit(packages, msg=msg, files=files, skip_local_service_run=skip_local_service_run, verbose=opts.verbose)
  File "/usr/lib/python2.7/site-packages/osc/core.py", line 878, in commit
    p.commit(msg, verbose=verbose, skip_local_service_run=skip_local_service_run)
  File "/usr/lib/python2.7/site-packages/osc/core.py", line 1306, in commit
    r = self.run_source_services(mode="trylocal", verbose=verbose)
  File "/usr/lib/python2.7/site-packages/osc/core.py", line 2148, in run_source_services
    service = ET.parse(os.path.join(self.absdir, '_service')).getroot()
  File "<string>", line 62, in parse
  File "<string>", line 38, in parse
cElementTree.ParseError: junk after document element: line 5, column 0

查看记录,web出错以后就没有commit了。请问论坛里面有人能看一下是怎么回事么
系统是13.1 64bit,改过的spec和_service在附件里
patch.tar.gz (10 KB)

你的 _service 写的不对。

额……知道出错的地方了 但是现在不管是 web 还是命令行都没法 commit,改好的也没法上传,总不能删掉 package 重建吧……女王大人有办法么

给你个对的自己领悟吧:Show M17N / fcitx - openSUSE Build Service

记得把 mode=“disabled” 去掉,那个是我的包现在是官方包了,官方包禁止用 _service。

女王大人我已经知道 _service 应该怎么改了,关键是现在没法 commit,本地改好了也没用……女王大人有办法么……
build.opensuse.org/package/show/home:931700llzz/kate-cpp-helper-plugin web 和 osc 都没办法 commit……

你 _service 改对就能 commit 了。