/ 铃儿响叮当 / design region installation

design region installation

2014-11-05 posted in [day-to-day]

Requirements

add a simple rules engine that allows interpreting rules such as: if (country == China) && (language == chinese) then install pkg if (country =/= China) && (profile =/= UbuntuKylin) then remove pkg

Solution

### Simple 1 We define a packagelist file, we sperate different section. Use the ## to start the section. Put the packages you want to install, and add - at the end of package name to remove it. ``` $ cat region_packages.list

Country:China,Language:Chinese

fonts-wqy-zenhei skype-

Country:!China

DropBox ``` ### KH OSP1

Downstream