summaryrefslogtreecommitdiff
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2022-08-18Merge release-0.28.17 from 'tools/mic'upstream/0.28.17submit/tizen/20220818.092614biao716.wang6-279/+70
Change-Id: I929aa3c676c041e6ab361c3b6dd5a2613ed6cd0d Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2018-03-22Revert "call copy_attachment() after configure() and move attachment files"Dohyung Kim4-4/+0
This reverts commit 7db9b0c91a5b26f96a86ec10dfad261a7d781f3b. Change-Id: Iaa242d65fd7fb14c379fff0f268ac1607005169e
2018-01-30call copy_attachment() after configure() and move attachment filesDohyung Kim4-0/+4
- Call BaseImager.copy_attachment() after BaseImager.configure() Post scripts on configure() cannot access attachment files which come from install_root. So call copy_attachment() after running post scripts. - Move attachment files not copy. If copying attachment files from install_root, then attachment files remain in install_root. So use mv instead of cp for deduplication. Change-Id: Ie7a1d516331e29eaba975bc186b9644b96c17fbc Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2017-10-17Another method of install tpk.yuhuan.yang4-0/+4
Change-Id: Ibe2f1cfaa7625ab1ea938feda5df6406beb267e6
2017-09-22When increase rpm release number, user can use --local-pkgs-path to install ↵xiaojuan.mao1-1/+22
local pkgs. Change-Id: I249c2b42a54bd311bb09296a787ffe7d2f03379d
2017-07-18Amend mic cr option of run_scriptyuhuan.yang4-14/+6
Change-Id: Ib088fb9d56b08c9aeae01908827f5507d972cdec
2017-07-14Add new option of --run_scriptyuhuan.yang4-0/+47
Change-Id: I7c2d194ba3bcc4e8fc78073bc922f6e7eb853821
2017-07-13Modify the order of generating image by cpio.xiaojuan.mao2-4/+4
Change-Id: I90cb12a4d68f6989af25318b6181a2ed9e9ebe88
2017-07-13Change the order of generating image by cpio.xiaojuan.mao2-2/+4
Change-Id: Ia1d2cc22b9a6e695a6f905574f8081c5910f0e8b
2017-07-13Use cpio gzip in mic.xiaojuan.mao4-9/+2
Change-Id: Ic7b3512b153ec5c92cd47a281bab8341f01acaf0
2017-07-13Use cpio gzip in mic.xiaojuan.mao4-0/+8
Change-Id: Ifce99807698d3a35fd3dddcdf8f9d60f4c2bb22c
2016-06-16Revert "Drop mic raw image format support"jianzhong.fang1-0/+260
Change-Id: I2752f5c804f215ba96b5cfbabfefb1c383bb5803
2016-02-04Using argparse module to parse the cmd lineyyh3-36/+22
Conflicts: plugins/imager/loop_plugin.py
2016-02-04Drop mic raw image format supportjianzhong.fang1-275/+0
Change-Id: Ia5f0f14131463f1eb20bbfe8a7159dfe1307f215 Conflicts: plugins/imager/raw_plugin.py
2016-02-04Drop MIC livecd image format support.jianzhong.fang1-252/+0
Change-Id: I22032747185fb6f2344c4a88ca227503d9369823
2016-02-04Drop MIC liveusb image format supportjianzhong.fang1-257/+0
Change-Id: I48e2f647b8278107bd4ce84c0c9c0237dec8b948
2016-02-04cleanup the code related with mic-nativejianzhong.fang6-61/+1
Change-Id: Iaec1eb7817b05a0eacdef3c1aafe248eeaade538
2016-02-04--priority option of *.ks file in mic does not applyGyeoungmin Kim1-1/+4
I confirm that --priority option of *.ks file in mic does not apply When creating an image file using ks file, Priority is determined by repo name If you check the logs of the mic by applying the repo name below to see what the results are different repo --name=mobile-wayland_arm64 ... repo --name=prerelease ... --priority 1 .............................................. repo --name=2mobile-wayland_arm64 ... repo --name=1prerelease ... --priority 1 Change-Id: I53bb8e96bc8eb06e8075294e56b0cbb4f35afd6b
2016-02-04add qcow image supportGui Chen1-0/+170
Change-Id: I5d357a162b2227beaff35f4a5ef913d36a2a6972 Signed-off-by: Gui Chen <gui.chen@intel.com>
2016-02-04Add 'ValueError' exception.lihongsx1-1/+1
Change-Id: I22021ebea6bd2db34150c15f588289c18929d63a
2016-02-04Add 'get_VcsInfo' function part to yumpkgmgr.pylihongsx1-0/+17
Fixes: #2081 Change-Id: Id780d02d38cbfccf6d4bb6e9eb37d709db0dd336
2016-02-04add strict-mode feature for zypp backendGui Chen1-2/+3
Fixes: #2056 Change-Id: I4858a52364189d5985c90b4bc6a0d435507be758 Signed-off-by: Gui Chen <gui.chen@intel.com>
2016-02-04add strict_mode(MHA-1115)Andrii Boichuk2-3/+7
2016-02-04fix Package_constPtr AttributeError: statusGui Chen1-1/+1
actually the modified 'item' should be PoolItem, which has 'status', instead of Package Change-Id: Ib29bc770281a5d32773a2165c65cc6c4431cb51b Signed-off-by: Gui Chen <gui.chen@intel.com>
2016-02-04typo fixHuanhuan Li1-2/+2
Change-Id: Id451840526902cbca9e5dd6a4cd0b730bb2bebfa
2016-02-04Make the error more preciseHuanhuan Li1-1/+3
Change-Id: I11879de8063534eb5a59b80edbfcd9a73aefdc5d
2016-02-04fix incorrect location outdir to destdirGui Chen5-10/+10
Change-Id: Ic0ec2d5ed9cefbc90d8a4b1149ecb7d984ad1e9f Signed-off-by: Gui Chen <gui.chen@intel.com>
2016-02-04relocate create.outdir to conf moduleGui Chen5-25/+0
Change-Id: I1a9007e9b3d8abfa91091ab063f75bb1f6cd3808 Signed-off-by: Gui Chen <gui.chen@intel.com>
2016-02-04Pylint warnings.Sun Lihong4-40/+44
C:139,8:Zypp._zyppQueryPackage: Comma not followed by a space query.addAttribute(zypp.SolvAttr.name,pkg) ^^ C:146,8:Zypp._splitPkgString: Comma not followed by a space sp = pkg.rsplit(".",1) ^^ C:213,12:Zypp.selectPackage: Comma not followed by a space q.addAttribute(zypp.SolvAttr.name,pattern) ^^ C:217,12:Zypp.selectPackage: Comma not followed by a space q.addAttribute(zypp.SolvAttr.name,name) ^^ C:221,12:Zypp.selectPackage: Comma not followed by a space q.addAttribute(zypp.SolvAttr.name,pkg) ^^ W: 19,0: Unused import sys W: 35,0: Unused import BaseImageCreator W: 20,0: Unused import re Change-Id: Ie6bdff4de495e93b0dd534c276cb77d5270db114 Conflicts: plugins/imager/raw_plugin.py
2014-03-25Generate manifest fileHuanhuan Li5-0/+5
The manifest file stores important infomation such as image file name, package format, compress format, partitions or disks. So when another program want to parse image files, it can get the infomation more easily by reading manifest file. There are two important kinds of format, see bellow: loop: { "format": "loop", "version": "0.24", "loop": { "image_files": [ "whole_rd_210-201403211800.tar.gz" ], "pack": ".tar.gz", "partitions": { "/opt": "data", "/opt/usr": "ums", "/": "platform" } }, "created": "2014-03-21 18:02:07" } raw: { "raw": { "image_files": [ "ivi-201403211803-sda.raw.bz2", "ivi-201403211803-sdb.raw.bz2" ], "disks": [ "sda", "sdb" ], "compress": "bz2", "sda": { "image": "ivi-201403211803-sda.raw.bz2", "bmap": "ivi-201403211803-sda.bmap" }, "sdb": { "image": "ivi-201403211803-sdb.raw.bz2", "bmap": "ivi-201403211803-sdb.bmap" } }, "format": "raw", "version": "0.24", "created": "2014-03-21 18:06:10" } Change-Id: Ie9682bad79337319d1c1e6534b3cd4db25271124 Fixes: #1583
2014-03-05fix obsoletes ignored version issueGui Chen1-3/+3
Fixes: #1382 Change-Id: I663a80703ba02091f87fa9aca23be9ec5ba0d1b9 Signed-off-by: Gui Chen <gui.chen@intel.com>
2014-03-03Fix zypp fail to download packagesHuanhuan Li1-0/+6
If we changed all configuration in '/etc/mic/mic.conf' to other dirs like '/home/build/xx' instead of '/var/tmp/xx', mic wouldn't mount or create '/var/tmp' any more, then it would result in zypp can't download packages, becuase zypp will use '/var/tmp' to build cache as default Fixes: #1623 Change-Id: I6f69c4a6f9655f70d3cbfa6670756255bca171a4
2014-01-16Fix a bug that raise AttributeError.Huang Hao1-8/+10
When download attachment packages by using yum pkgmgr, the url variable below is a unicode instead of SafeURL object. Traceback (most recent call last): ...... File "/home/huanghao/workspace/mic/plugins/imager/loop_plugin.py", line 127, in do_create creator.install() File "/usr/local/lib/python2.7/dist-packages/mic/imager/baseimager.py", line 1051, in install self.__attachment_packages(pkg_manager) File "/usr/local/lib/python2.7/dist-packages/mic/imager/baseimager.py", line 966, in __attachment_packages fpath = grabber.myurlgrab(url.full, fpath, proxies, None) AttributeError: 'unicode' object has no attribute 'full' Change-Id: Ib5c03ef053b8cf22f1b8ef1868ad244427df7cc6
2013-08-21Fix --pkgmgr=yum does not use cached download packagesHuanhuan Li1-4/+6
Change-Id: I81fba9c393a7fd13b0ce22c5c9e8027fa14bf315 Fixes: #1547
2014-01-02Rewrite SafeURL class without using zypp.UrlHuang Hao1-1/+1
Since SafeURL implementation depends on lib zypp which provided by python-zypp package. This package will not be installed when only install "mic" package instead of "mic-native". Then import zypp will raise exception of "No module named _zypp". Change-Id: If8232b0ee77166eadc04f016cd2cda722c7ff23e Fixed: 1568
2013-12-25Support encode form of baseurl for repo directive.Huang Hao2-11/+4
If user has special characters like '@' in his/her password, it can be write as encode form embeded into url. By using zypp.Url class which is already support encoded password, it by default hide password part, so we also gain the feature that password won't be printed to console. Fix: 1499 Change-Id: I4243f36df491cb6eb80f04334962a2ed6030acbe
2013-12-16remove EULA checkGui Chen2-10/+0
this EULA (End User Licence Agreemnt) is not neccessary now, remove it to clean up the code Change-Id: I300e494992e355c1bff811fba3dd7744733fab67 Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-12-13clean up and refine all the docs in gitJF Ding1-0/+0
Break the long lines, remove the deprecated content, etc. BTW, other minor changes include: * move the cmdln completion scripts to more proper places * file permission checking Change-Id: I063d99119156b45279a387c24280723ae70f4eb2 Signed-off-by: Jianfeng Ding <jian-feng.ding@intel.com>
2013-12-11check if mic-native installed when running native modeGui Chen5-0/+50
Change-Id: I48500314b2f7de0187beb92b7ec8877d9874dc36 Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-10-22raise error instead of msger.errorGui Chen1-1/+1
mic uses too many msger.error to exit the program directly, it's not safe, except main loop, other logic should raise error as possible Change-Id: I4fa0c05998b78c3bb9b12148e7dfd6c04bad8251 Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-10-15don't close file handlers as rpm will handle itGui Chen2-16/+0
as new version of rpm can handle file handlers correctly in most time, we don't repeat it in mic itself Change-Id: I48b413e2a3aaf823f306c35e66dcfca7e002306e Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-08-14Disable using proxy from /etc/sysconfig/proxyZhang Qiang1-0/+2
Always set 'proxy' query paramer to disable using proxy from /etc/sysconfig/proxy. Fixes: #1093 Change-Id: I6a75c9e61bb2b2142c8401036ddd21b85886fa28
2013-08-07Support user/password in proxyZhang Qiang1-1/+18
If password contains special char ':' which should be replaced with its' quoted char '%3A'. Fixes: #541 Change-Id: I12575208c7c337f0bad3a40bac0988e17b160819
2013-07-01implement '--check-pkgs' to check if packages included in imageGui Chen2-0/+21
check the given package list, if it will be installed, remove it from the checking list. when check done, it proves some given packages won't be installed to the image, mic should abort Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-06-25fix rpm header not including 'VCS' tagGui Chen1-1/+5
Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-04-02fix attachment packages swig attr lostGui Chen1-2/+3
Change-Id: Idaeabdd0c340f6f9f8f5eddae6eb17478115d11c Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-04-02fix conflict variable in cmpEVR and priority conditionGui Chen1-7/+8
Change-Id: Icd9b2eeac10e5f8265445d96cc9ceb1a5116d158 Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-04-02condider repo priority while sorting packagesZhang Qiang1-0/+11
standard criterion: - arch compatibility with highest priority - repo priority - package version have lowest priority Change-Id: I86dcb35a568ddc0162e6145b6871dc2502c3d24f
2013-03-19fix debuginfo rpm swig attr lostGui Chen1-1/+2
when adding debuginfo rpm, the PoolItem doesn't convert to Solvable Change-Id: I221760667217421235849536def6bbcfd94199c2 Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-03-03be compatible with python-zypp built with swig 2.0Gui Chen1-20/+24
differences in python-zypp between swig 1.3 and swig 2.0 built make the original code not work, this patch trys to fix this compatiblity issue Change-Id: Ie0a16182463886e9cf89f6fa1c63756e4d50c02d Signed-off-by: Gui Chen <gui.chen@intel.com>