Android的/建筑的CyanogenMod:从roomservice.xml删除项目 [英] Android/Cyanogenmod building: remove-project from roomservice.xml

查看:1062
本文介绍了Android的/建筑的CyanogenMod:从roomservice.xml删除项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想删除从在CM brunching产生的roomservice.xml设备相关的项目,并添加不同的回购自己。
理论上(在我localmanifest,叫mint.xml),我应该只需要
<清除项目名称=的CyanogenMod /...
但回购同步告诉我,

I want to remove a device-related project from the roomservice.xml generated by brunching in CM and add a different repo myself. Theoretically (in my localmanifest, called mint.xml), I should just need to <remove-project name="Cyanogenmod/.... But repo sync tells me that

删除项目元素指定不存在的项目

remove-project element specifies non-existant project

是不是因为我的本地清单进行采购的的的roomservice.xml?

Is that because my local manifest is sourced before the roomservice.xml?

问题是与此相关的一个位:
<一href=\"https://stackoverflow.com/questions/22899331/trouble-with-cyanogenmod-local-manifest\">trouble-with-cyanogenmod-local-manifest

The question is a bit related to this one: trouble-with-cyanogenmod-local-manifest

其它来源:
CM维基有关删除项目

你知道如何源清单自身的之后的的roomservice.xml或以某种方式达到同样的?

Do you know how to source the own manifest after the roomservice.xml or somehow achieve the same?

感谢您的任何答案。

推荐答案

作为回购的manifest_xml.py看到,

As seen in Repo's manifest_xml.py,

LOCAL_MANIFESTS_DIR_NAME = 'local_manifests'
...
class XmlManifest(object):
  ...
  def _Load(self):
      ...
      local_dir = os.path.abspath(os.path.join(self.repodir, LOCAL_MANIFESTS_DIR_NAME))
      try:
        for local_file in sorted(os.listdir(local_dir)):
          if local_file.endswith('.xml'):
            local = os.path.join(local_dir, local_file)
            nodes.append(self._ParseManifestXml(local, self.repodir))
      except OSError:
        pass

本地清单文件读取字母顺序排列。因此,您的文件mint.xml是roomservice.xml之前加载,所以当时你尝试删除在roomservice.xml它实际上并不存在定义的项目。您的文件重命名为东西排序roomservice.xml后。

local manifest files are read in alphabetical order. Your file mint.xml is therefore loaded before roomservice.xml, so at the time you try to remove the project that's defined in roomservice.xml it doesn't actually exist. Rename your file to something that sorts after roomservice.xml.

这篇关于Android的/建筑的CyanogenMod:从roomservice.xml删除项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆