tools/mic.git
13 years agominor changes of commments
JF Ding [Thu, 22 Sep 2011 06:09:00 +0000 (14:09 +0800)]
minor changes of commments

13 years agoMerge "Fixed a issue about 'include_src'"
Jian-feng ding [Thu, 22 Sep 2011 06:16:45 +0000 (14:16 +0800)]
Merge "Fixed a issue about 'include_src'"

13 years agoyum: set persistdir
Zhang Qiang [Thu, 22 Sep 2011 06:16:41 +0000 (14:16 +0800)]
yum: set persistdir

13 years agoMerge "zypp: check arch of local rpm"
Jian-feng ding [Thu, 22 Sep 2011 05:47:03 +0000 (13:47 +0800)]
Merge "zypp: check arch of local rpm"

13 years agoMerge changes I0f07f6ae,Icb6a062e,I2dcf8cf6,If0ee2bce
Jian-feng ding [Thu, 22 Sep 2011 05:40:04 +0000 (13:40 +0800)]
Merge changes I0f07f6ae,Icb6a062e,I2dcf8cf6,If0ee2bce

* changes:
  zypp: simplify arch setting for zypp backend
  yum: Unify the output of yum backend and zypp backend
  zypp:obsolete package check
  zypp: deselect packages while zypp resolving finished

13 years agoMerge "zypp: remove the zypp_install function"
Jian-feng ding [Thu, 22 Sep 2011 03:45:51 +0000 (11:45 +0800)]
Merge "zypp: remove the zypp_install function"

13 years agoFixed a issue about 'include_src'
Shuangquan Zhou [Wed, 21 Sep 2011 08:40:07 +0000 (16:40 +0800)]
Fixed a issue about 'include_src'

13 years agoMerge "Correct release option show"
JF Ding [Wed, 21 Sep 2011 02:08:32 +0000 (10:08 +0800)]
Merge "Correct release option show"

13 years agoavoid importing ext modules in yum plugin
JF Ding [Tue, 20 Sep 2011 11:11:58 +0000 (19:11 +0800)]
avoid importing ext modules in yum plugin

13 years agozypp: check arch of local rpm
Zhang Qiang [Tue, 20 Sep 2011 09:21:56 +0000 (17:21 +0800)]
zypp: check arch of local rpm

Check the arch of local rpm, if it's not compatible with target arch,
then just ignore it.

13 years agozypp: simplify arch setting for zypp backend
Zhang Qiang [Tue, 20 Sep 2011 09:12:37 +0000 (17:12 +0800)]
zypp: simplify arch setting for zypp backend

Using Arch class to create Arch for different architecture

13 years agoyum: Unify the output of yum backend and zypp backend
Zhang Qiang [Tue, 20 Sep 2011 09:09:47 +0000 (17:09 +0800)]
yum: Unify the output of yum backend and zypp backend

unifiy the download progress info of yum and zypp. With this patch
download progress output format is :
    RPM Name [current number /total pacakges number]

13 years agoCleanup temporary dirs, even if convertor fails
Shuangquan Zhou [Tue, 20 Sep 2011 08:27:03 +0000 (16:27 +0800)]
Cleanup temporary dirs, even if convertor fails

13 years agoCorrect release option show
Gui Chen [Tue, 20 Sep 2011 07:24:33 +0000 (15:24 +0800)]
Correct release option show

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agoRemove the temporary dir 'srcmnt'
Shuangquan Zhou [Tue, 20 Sep 2011 02:41:59 +0000 (10:41 +0800)]
Remove the temporary dir 'srcmnt'

13 years agoCorrected a mistake of fs_plugin
Shuangquan Zhou [Tue, 20 Sep 2011 01:54:45 +0000 (09:54 +0800)]
Corrected a mistake of fs_plugin

13 years agoMerge "zypp: cleanup code"
JF Ding [Mon, 19 Sep 2011 11:47:13 +0000 (19:47 +0800)]
Merge "zypp: cleanup code"

13 years agonamespace typo fixed
JF Ding [Mon, 19 Sep 2011 09:29:01 +0000 (17:29 +0800)]
namespace typo fixed

13 years agozypp:obsolete package check
Zhang Qiang [Sun, 18 Sep 2011 22:14:05 +0000 (06:14 +0800)]
zypp:obsolete package check

If one package(A) is obsoleted by another package(B), the package B
would be set to be installed.

13 years agobetter error output for CreateError
JF Ding [Fri, 16 Sep 2011 10:58:07 +0000 (19:58 +0900)]
better error output for CreateError

13 years agozypp: deselect packages while zypp resolving finished
Zhang Qiang [Fri, 16 Sep 2011 10:12:10 +0000 (18:12 +0800)]
zypp: deselect packages while zypp resolving finished

The deselect operation should be called after zypp resolving
process finished, fix BMC#22939

13 years agozypp: remove the zypp_install function
Zhang Qiang [Fri, 16 Sep 2011 09:50:05 +0000 (17:50 +0800)]
zypp: remove the zypp_install function

zypp_install function is used to donload/install packages in zypp core,
but libzypp-binding and zypp have some unexected issue, so it's better
to download/install in mic.

13 years agozypp: cleanup code
Zhang Qiang [Fri, 16 Sep 2011 09:49:21 +0000 (17:49 +0800)]
zypp: cleanup code

Remove the redundant code.

13 years agoMakefile: make dist to remember the git commit id
JF Ding [Fri, 16 Sep 2011 02:38:10 +0000 (11:38 +0900)]
Makefile: make dist to remember the git commit id

13 years agofixed the remain mod import problems
JF Ding [Fri, 16 Sep 2011 02:24:07 +0000 (11:24 +0900)]
fixed the remain mod import problems

13 years agomv all 3rdparty modules to specific dir and hide urlgrabber
JF Ding [Thu, 15 Sep 2011 10:11:01 +0000 (19:11 +0900)]
mv all 3rdparty modules to specific dir and hide urlgrabber

urlgrabber module was only used by pykickstart without self reference,
so it can be moved inside pykickstart module dir. And then it will
avoid the potential conflict with system installed urlgrabber module.

e.g. In Fedora system, yum will require urlgrabber > 3.9

13 years agorm the unnecessary pykickstart import of zypp plugin
JF Ding [Thu, 15 Sep 2011 09:52:14 +0000 (18:52 +0900)]
rm the unnecessary pykickstart import of zypp plugin

13 years agokill redundant message output
JF Ding [Thu, 15 Sep 2011 09:47:00 +0000 (18:47 +0900)]
kill redundant message output

13 years agoskip unsupported plugin friendly
JF Ding [Thu, 15 Sep 2011 09:17:59 +0000 (18:17 +0900)]
skip unsupported plugin friendly

catch the ImportErrors, show warning, and skip it

13 years agocheck the new libzypp api just once
JF Ding [Thu, 15 Sep 2011 09:09:24 +0000 (18:09 +0900)]
check the new libzypp api just once

13 years agozypp: search package provides info in selectPackage
Zhang Qiang [Wed, 14 Sep 2011 14:07:30 +0000 (22:07 +0800)]
zypp: search package provides info in selectPackage

This patch provide the ability to search package provides info while
selecting packages.

13 years agoHUGE regression for the module path hanlding
JF Ding [Wed, 14 Sep 2011 11:26:38 +0000 (04:26 -0700)]
HUGE regression for the module path hanlding

we need to find a better way to resolve it

13 years agoproper exception handling in zypp backend
JF Ding [Wed, 14 Sep 2011 11:24:26 +0000 (04:24 -0700)]
proper exception handling in zypp backend

13 years agoload pykickstart and urlgrabber for mic
Gui Chen [Wed, 14 Sep 2011 06:16:53 +0000 (14:16 +0800)]
load pykickstart and urlgrabber for mic

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agoRemove extra print
Gui Chen [Wed, 14 Sep 2011 05:48:41 +0000 (13:48 +0800)]
Remove extra print

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agoadd config option
Gui Chen [Tue, 13 Sep 2011 08:38:19 +0000 (16:38 +0800)]
add config option

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agohide the private part
JF Ding [Tue, 13 Sep 2011 02:13:22 +0000 (19:13 -0700)]
hide the private part

13 years agoadd timestr prefix in logfile
JF Ding [Mon, 12 Sep 2011 16:47:38 +0000 (09:47 -0700)]
add timestr prefix in logfile

13 years agoreport zypp/arch support errors friendly
JF Ding [Mon, 12 Sep 2011 16:29:05 +0000 (09:29 -0700)]
report zypp/arch support errors friendly

13 years agoremove arch key from default mic.conf
JF Ding [Mon, 12 Sep 2011 16:12:17 +0000 (09:12 -0700)]
remove arch key from default mic.conf

13 years agoAdd arch option
Gui Chen [Mon, 12 Sep 2011 01:03:05 +0000 (09:03 +0800)]
Add arch option

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agoadd --release support for new imagetype
JF Ding [Mon, 12 Sep 2011 15:36:17 +0000 (08:36 -0700)]
add --release support for new imagetype

13 years agoAdd release option
Gui Chen [Mon, 12 Sep 2011 00:37:37 +0000 (08:37 +0800)]
Add release option

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agomore effitient logfile saving
JF Ding [Mon, 12 Sep 2011 13:06:19 +0000 (06:06 -0700)]
more effitient logfile saving

13 years agozypp: format dependencies error message.
Zhang Qiang [Mon, 5 Sep 2011 09:44:52 +0000 (17:44 +0800)]
zypp: format dependencies error message.

13 years agorevert the _resparse() code for livecd
JF Ding [Fri, 9 Sep 2011 11:24:52 +0000 (20:24 +0900)]
revert the _resparse() code for livecd

13 years agoenhance msger module to support logfile
JF Ding [Fri, 9 Sep 2011 06:10:03 +0000 (15:10 +0900)]
enhance msger module to support logfile

13 years agoadding resizing and packaging for new image type
JF Ding [Fri, 9 Sep 2011 05:13:01 +0000 (14:13 +0900)]
adding resizing and packaging for new image type

13 years agonew image type plugin added
JF Ding [Fri, 9 Sep 2011 02:01:59 +0000 (11:01 +0900)]
new image type plugin added

13 years agounify coding style
JF Ding [Thu, 8 Sep 2011 16:51:13 +0000 (00:51 +0800)]
unify coding style

13 years agoMerge changes I16122b7a,Ib74e2676,I1171e42c
JF Ding [Thu, 8 Sep 2011 16:51:36 +0000 (00:51 +0800)]
Merge changes I16122b7a,Ib74e2676,I1171e42c

* changes:
  zypp:remove redundancy yum configure code
  zypp:remove redundancy download/build cache code
  zypp: use getRepositoryInfo to replace loop in build_repo_cache

13 years agoMerge "zypp: save repodata cache for reuse."
JF Ding [Thu, 8 Sep 2011 16:48:23 +0000 (00:48 +0800)]
Merge "zypp: save repodata cache for reuse."

13 years agoMerge "zyppbackend: remove select packages in group"
JF Ding [Thu, 8 Sep 2011 16:47:14 +0000 (00:47 +0800)]
Merge "zyppbackend: remove select packages in group"

13 years agomake loop class more extensible
JF Ding [Thu, 8 Sep 2011 09:24:03 +0000 (18:24 +0900)]
make loop class more extensible

13 years agoadd --debug/--verbose for create
Gui Chen [Thu, 8 Sep 2011 07:14:04 +0000 (15:14 +0800)]
add --debug/--verbose for create

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agoRelocate common options for create
Gui Chen [Thu, 8 Sep 2011 07:10:36 +0000 (15:10 +0800)]
Relocate common options for create

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agoremove redundant module importing
JF Ding [Thu, 8 Sep 2011 06:47:14 +0000 (15:47 +0900)]
remove redundant module importing

13 years agobetter exception handling for kickstart parser
JF Ding [Thu, 8 Sep 2011 06:07:52 +0000 (15:07 +0900)]
better exception handling for kickstart parser

13 years agoloop -E opt support / as the mountpoint
JF Ding [Thu, 8 Sep 2011 00:18:21 +0000 (09:18 +0900)]
loop -E opt support / as the mountpoint

it will specify the name of main loop image

13 years agofixed the name space pollution problem
JF Ding [Wed, 7 Sep 2011 15:34:29 +0000 (23:34 +0800)]
fixed the name space pollution problem

13 years agopostpone the fetch repomd and cleanup configmgr
JF Ding [Wed, 7 Sep 2011 08:19:15 +0000 (17:19 +0900)]
postpone the fetch repomd and cleanup configmgr

the previous implementation to fetch repomd is too early, it's
very very bad, fixed it
and the there are many unused and ugly methed in configmgr also,
cleaned them up

13 years agoenhance loop to mount multi-loop imgs at the same time
JF Ding [Wed, 7 Sep 2011 06:03:51 +0000 (15:03 +0900)]
enhance loop to mount multi-loop imgs at the same time

using new cmdln options like:
 --extra-loop=/opt:opt.img,/boot:boot.img

13 years agoreplace most of subprocess calls by new runner apis
JF Ding [Wed, 7 Sep 2011 00:44:28 +0000 (09:44 +0900)]
replace most of subprocess calls by new runner apis

only several exceptions remained:
 chroot ones
 pipe chained ones

13 years agomove msger.run to utils.runner module and more apis
JF Ding [Mon, 5 Sep 2011 09:03:55 +0000 (18:03 +0900)]
move msger.run to utils.runner module and more apis

in new separate module mic/utils/runner.py, three new apis
provided:
    runner.show (similar with msger.run)
    runner.quiet
    runner.outs
    and a more generic runner.runtool

13 years agoseparate proxy funcs from misc.py and del deprecated
JF Ding [Mon, 5 Sep 2011 06:44:31 +0000 (15:44 +0900)]
separate proxy funcs from misc.py and del deprecated

13 years agozypp:remove redundancy yum configure code
Zhang Qiang [Mon, 5 Sep 2011 05:42:11 +0000 (13:42 +0800)]
zypp:remove redundancy yum configure code

13 years agozypp:remove redundancy download/build cache code
Zhang Qiang [Mon, 5 Sep 2011 05:38:12 +0000 (13:38 +0800)]
zypp:remove redundancy download/build cache code

repodata download/build process has been finished in addRepository.

13 years agozypp: use getRepositoryInfo to replace loop in build_repo_cache
Zhang Qiang [Mon, 5 Sep 2011 05:35:29 +0000 (13:35 +0800)]
zypp: use getRepositoryInfo to replace loop in build_repo_cache

13 years agofixed msger.run error when arg is empty str
JF Ding [Mon, 5 Sep 2011 03:40:04 +0000 (12:40 +0900)]
fixed msger.run error when arg is empty str

13 years agozypp: save repodata cache for reuse.
Zhang Qiang [Mon, 5 Sep 2011 02:35:18 +0000 (10:35 +0800)]
zypp: save repodata cache for reuse.

Without this patch, repodata would be downloaded every times.

The repodata consistence check has been implemented in libzypp, so if
repodata has been changed in remot repo server, libzypp can detect this
and download the latest data.

13 years agoremove improper exception handlings
JF Ding [Mon, 5 Sep 2011 01:46:08 +0000 (10:46 +0900)]
remove improper exception handlings

13 years agozyppbackend: remove select packages in group
Zhang Qiang [Mon, 5 Sep 2011 02:24:34 +0000 (10:24 +0800)]
zyppbackend: remove select packages in group

In selectGroup, packages in groups don't need to set. zypp would set
them automaticlly in resolve process.

13 years agobetter raw()/run() handling in msger
JF Ding [Mon, 5 Sep 2011 01:45:12 +0000 (10:45 +0900)]
better raw()/run() handling in msger

13 years agoimage type "fs" to check and confirm the exists dir
JF Ding [Fri, 2 Sep 2011 07:59:20 +0000 (16:59 +0900)]
image type "fs" to check and confirm the exists dir

13 years agodo not use default value for "lang" in kickstart
JF Ding [Fri, 2 Sep 2011 07:22:44 +0000 (16:22 +0900)]
do not use default value for "lang" in kickstart

then will not write /etc/sysconfig/i18n

13 years agotypos in chroot and convert subcmd
JF Ding [Fri, 2 Sep 2011 07:20:07 +0000 (16:20 +0900)]
typos in chroot and convert subcmd

13 years agocatch KeyboardInt and quit decently
JF Ding [Fri, 2 Sep 2011 06:38:36 +0000 (15:38 +0900)]
catch KeyboardInt and quit decently

13 years agosuppress all rpm warning msg in non-debug mode
JF Ding [Fri, 2 Sep 2011 05:58:49 +0000 (14:58 +0900)]
suppress all rpm warning msg in non-debug mode

13 years agowrapper all subprocess call using msger.run
JF Ding [Fri, 2 Sep 2011 05:24:05 +0000 (14:24 +0900)]
wrapper all subprocess call using msger.run

all the output of external tools can be controlled

13 years agoenhancement for 'usage' message
JF Ding [Fri, 2 Sep 2011 02:22:11 +0000 (11:22 +0900)]
enhancement for 'usage' message

13 years agobetter exception handlings
JF Ding [Fri, 2 Sep 2011 01:50:01 +0000 (10:50 +0900)]
better exception handlings

13 years agorefine and cleanup the zypp backend plugin
JF Ding [Thu, 1 Sep 2011 11:02:23 +0000 (20:02 +0900)]
refine and cleanup the zypp backend plugin

13 years agoseparate check_EULA code to be common
JF Ding [Thu, 1 Sep 2011 10:01:53 +0000 (19:01 +0900)]
separate check_EULA code to be common

13 years agorefine the yumpkgmgr plugin code
JF Ding [Thu, 1 Sep 2011 09:15:34 +0000 (18:15 +0900)]
refine the yumpkgmgr plugin code

13 years agoenhance msger.ask and new pause()
JF Ding [Thu, 1 Sep 2011 09:15:04 +0000 (18:15 +0900)]
enhance msger.ask and new pause()

13 years agolivecd/liveusb will quit decently for arm images
JF Ding [Thu, 1 Sep 2011 08:21:59 +0000 (17:21 +0900)]
livecd/liveusb will quit decently for arm images

because livecd/liveusb images need 'syslinux' which is x86 only package,
we will never support livecd/liveusb formats for arm images.

13 years agorefine the liveusb code and cleanup
JF Ding [Thu, 1 Sep 2011 07:16:44 +0000 (16:16 +0900)]
refine the liveusb code and cleanup

13 years agorefine the livecd plugin code and cleanup unused part
JF Ding [Thu, 1 Sep 2011 06:56:49 +0000 (15:56 +0900)]
refine the livecd plugin code and cleanup unused part

13 years agorefine the raw plugin code
JF Ding [Thu, 1 Sep 2011 06:39:58 +0000 (15:39 +0900)]
refine the raw plugin code

13 years agorefine the loop plugin code
JF Ding [Thu, 1 Sep 2011 06:24:11 +0000 (15:24 +0900)]
refine the loop plugin code

13 years agorefine the fs plugin code and other cleanups
JF Ding [Thu, 1 Sep 2011 06:14:23 +0000 (15:14 +0900)]
refine the fs plugin code and other cleanups

13 years agocheck the license headers carefully for all files
JF Ding [Thu, 1 Sep 2011 03:06:31 +0000 (12:06 +0900)]
check the license headers carefully for all files

13 years agoupdate setup.py for ubuntu installation
JF Ding [Thu, 1 Sep 2011 02:32:38 +0000 (11:32 +0900)]
update setup.py for ubuntu installation

and open the 'develop' cmd by using setuptools

13 years agofixed the lost makedirs import symbol
JF Ding [Tue, 30 Aug 2011 07:47:21 +0000 (15:47 +0800)]
fixed the lost makedirs import symbol

13 years agomore compact plugin framwork
JF Ding [Tue, 30 Aug 2011 05:32:56 +0000 (13:32 +0800)]
more compact plugin framwork

13 years agoincluded 3rdparty urlgrabber modules
JF Ding [Sun, 28 Aug 2011 07:48:58 +0000 (15:48 +0800)]
included 3rdparty urlgrabber modules

The python-urlgrabber-3.1.0 is the last and stable pure python
version. MIC included it to decrease the dependencies.

13 years agochange the default tmp/cache dir and make sure existing
JF Ding [Sun, 28 Aug 2011 07:42:08 +0000 (15:42 +0800)]
change the default tmp/cache dir and make sure existing

13 years agoupdate msger to refine nocolor output
JF Ding [Wed, 24 Aug 2011 10:36:08 +0000 (18:36 +0800)]
update msger to refine nocolor output

13 years agoremove all the unnecessary wildcard import
JF Ding [Wed, 24 Aug 2011 06:06:52 +0000 (14:06 +0800)]
remove all the unnecessary wildcard import

13 years agoSupport local rpm packages
Shuangquan Zhou [Wed, 24 Aug 2011 03:05:46 +0000 (11:05 +0800)]
Support local rpm packages

Signed-off-by: Shuangquan Zhou <shuangquan.zhou@intel.com>