tools/mic.git
12 years agounify the license header of all files
JF Ding [Mon, 10 Oct 2011 02:55:13 +0000 (10:55 +0800)]
unify the license header of all files

12 years agoyum: fix a typo.
Zhang Qiang [Sun, 9 Oct 2011 09:20:10 +0000 (17:20 +0800)]
yum: fix a typo.

12 years agoMerge "zypp: recording correct package info for local rpm"
Jian-feng Ding [Sat, 8 Oct 2011 11:01:35 +0000 (19:01 +0800)]
Merge "zypp: recording correct package info for local rpm"

12 years agoupdate README for better blockquote
JF Ding [Sat, 8 Oct 2011 10:01:19 +0000 (18:01 +0800)]
update README for better blockquote

and cleanup all trailing spaces

12 years agozypp: recording correct package info for local rpm
Zhang Qiang [Sat, 8 Oct 2011 06:33:43 +0000 (14:33 +0800)]
zypp: recording correct package info for local rpm

12 years agomake clean up mtab selectable in umount()
JF Ding [Sat, 8 Oct 2011 05:21:11 +0000 (13:21 +0800)]
make clean up mtab selectable in umount()

12 years agozypp: Catch more error msg from rpm transaction results
Zhang Qiang [Sat, 8 Oct 2011 05:28:42 +0000 (13:28 +0800)]
zypp: Catch more error msg from rpm transaction results

12 years agoKickstartConfig: add more directory checking
Zhang Qiang [Sat, 8 Oct 2011 05:27:17 +0000 (13:27 +0800)]
KickstartConfig: add more directory checking

12 years agoMerge "zypp: Catch more error msg from rpm transaction results"
Huaxu Wan [Sat, 8 Oct 2011 05:19:20 +0000 (13:19 +0800)]
Merge "zypp: Catch more error msg from rpm transaction results"

12 years agoMerge changes I13855356,Ic78606d8,I8138e7e6
Jian-feng Ding [Sat, 8 Oct 2011 05:11:05 +0000 (13:11 +0800)]
Merge changes I13855356,Ic78606d8,I8138e7e6

* changes:
  KickstartConfig: add more directory checking
  zypp: repo special proxy support
  yum: deselect package before install local package

12 years agoFix multi-line error msg fully showed
Gui Chen [Sat, 8 Oct 2011 04:52:36 +0000 (12:52 +0800)]
Fix multi-line error msg fully showed

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agozypp: repo special proxy support
Zhang Qiang [Fri, 30 Sep 2011 09:21:55 +0000 (17:21 +0800)]
zypp: repo special proxy support

Back port proxy support patch from mic2

12 years agoyum: deselect package before install local package
Zhang Qiang [Fri, 30 Sep 2011 08:42:08 +0000 (16:42 +0800)]
yum: deselect package before install local package

local package should be be deselected first before building RPM
transaction.

12 years agoReplace '--checksig --nogpg' with '-K --nosignature'
Zhang Qiang [Fri, 30 Sep 2011 06:13:58 +0000 (14:13 +0800)]
Replace '--checksig --nogpg' with '-K --nosignature'

--nogpg is obsoleted by --nosignature for a long time, and '--nogpg'
is removed since rpm 4.9.

12 years agozypp: fix a typo error
Zhang Qiang [Fri, 30 Sep 2011 03:28:02 +0000 (11:28 +0800)]
zypp: fix a typo error

12 years agoMerge "zypp: fix issue of two package exist in one repo"
Jian-feng Ding [Fri, 30 Sep 2011 02:12:10 +0000 (10:12 +0800)]
Merge "zypp: fix issue of two package exist in one repo"

12 years agozypp: fix issue of two package exist in one repo
Zhang Qiang [Thu, 29 Sep 2011 08:25:50 +0000 (16:25 +0800)]
zypp: fix issue of two package exist in one repo

12 years agoMerge "Print package name while installing packages"
Jian-feng Ding [Thu, 29 Sep 2011 07:03:07 +0000 (15:03 +0800)]
Merge "Print package name while installing packages"

12 years agoMerge "baseimager: change the mode of 'tmp' dir"
Jian-feng Ding [Thu, 29 Sep 2011 07:02:53 +0000 (15:02 +0800)]
Merge "baseimager: change the mode of 'tmp' dir"

12 years agoPrint package name while installing packages
Zhang Qiang [Thu, 29 Sep 2011 06:00:22 +0000 (14:00 +0800)]
Print package name while installing packages

12 years agobaseimager: change the mode of 'tmp' dir
Zhang Qiang [Thu, 29 Sep 2011 05:04:20 +0000 (13:04 +0800)]
baseimager: change the mode of 'tmp' dir

12 years agoappend README with ext-name for format
JF Ding [Tue, 27 Sep 2011 02:56:34 +0000 (10:56 +0800)]
append README with ext-name for format

12 years agoUpdate README file
Gui Chen [Mon, 26 Sep 2011 11:22:03 +0000 (19:22 +0800)]
Update README file

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoreformat the README
JF Ding [Mon, 26 Sep 2011 10:12:13 +0000 (18:12 +0800)]
reformat the README

keyword replacement
break long lines
remove all reStructText warnings
simple cleanup

12 years agoMerge "Add README file"
Jian-feng Ding [Mon, 26 Sep 2011 09:52:08 +0000 (17:52 +0800)]
Merge "Add README file"

12 years agoAdd README file
Gui Chen [Mon, 26 Sep 2011 09:51:54 +0000 (17:51 +0800)]
Add README file

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoResolve groups to packages
Zhang Qiang [Mon, 26 Sep 2011 07:52:25 +0000 (15:52 +0800)]
Resolve groups to packages

Resolve groups to package list if use zypp but repo only has comps, or
use yum but repo only has patterns file.

12 years agobaseimager: revert original changes
Zhang Qiang [Fri, 23 Sep 2011 10:16:34 +0000 (18:16 +0800)]
baseimager: revert original changes

12 years agoMerge changes Iefb63ee1,I7a7a6cfc,I46232f34
Jian-feng Ding [Fri, 23 Sep 2011 09:46:09 +0000 (17:46 +0800)]
Merge changes Iefb63ee1,I7a7a6cfc,I46232f34

* changes:
  zypp: remove cache data while initializing zypp
  zypp:Clean up installLocal code
  baseimager:don't put local rpm to _excluded_pkgs

12 years agozypp: remove cache data while initializing zypp
Zhang Qiang [Fri, 23 Sep 2011 09:50:33 +0000 (17:50 +0800)]
zypp: remove cache data while initializing zypp

This is a cache management issue in zypp, and we just clean up all the
cache data before initializing zypp.

12 years agozypp:Clean up installLocal code
Zhang Qiang [Fri, 23 Sep 2011 09:14:49 +0000 (17:14 +0800)]
zypp:Clean up installLocal code

remove __get_pkg_name and some 'import *', and use rpmmisc.readRpmHeader
to replace rpmUtils.miscutils.hdrFromPackage to get rpm package info.

12 years agoUpdate release help msg and rearrange the option for look
Gui Chen [Fri, 23 Sep 2011 08:59:15 +0000 (16:59 +0800)]
Update release help msg and rearrange the option for look
Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoAdd '--pkgmgr' option
Gui Chen [Fri, 23 Sep 2011 08:47:16 +0000 (16:47 +0800)]
Add '--pkgmgr' option

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agobaseimager:don't put local rpm to _excluded_pkgs
Zhang Qiang [Fri, 23 Sep 2011 08:22:39 +0000 (16:22 +0800)]
baseimager:don't put local rpm to _excluded_pkgs

This is not make sense to exclude local rpms, exclude_pkgs contain
packages should be deselected.

12 years agoMerge "zypp: include/exclude package support"
Jian-feng Ding [Fri, 23 Sep 2011 07:16:48 +0000 (15:16 +0800)]
Merge "zypp: include/exclude package support"

12 years agozypp: include/exclude package support
Zhang Qiang [Fri, 23 Sep 2011 03:06:24 +0000 (11:06 +0800)]
zypp: include/exclude package support

Remove the original code, and implemented this feature based on latest
code. It's more clear.

12 years agocheck the exists of ksfile before parsing
JF Ding [Thu, 22 Sep 2011 10:04:06 +0000 (18:04 +0800)]
check the exists of ksfile before parsing

12 years agoshow available pkgmgrs if invalid one encountered
JF Ding [Thu, 22 Sep 2011 09:58:36 +0000 (17:58 +0800)]
show available pkgmgrs if invalid one encountered

12 years agozypp: rewrite code of selectPackage and selectGroup
Zhang Qiang [Thu, 22 Sep 2011 09:44:29 +0000 (17:44 +0800)]
zypp: rewrite code of selectPackage and selectGroup

Using more efficient API PoolQuery to rewrite selectPacakge and
selectGroup, which avoid traversing all the package every time.

This patch also improve the wildcard support in ks file, and the
following three types are supported:
xxx*
*yyy
*zzz*

12 years agozypp: move the checking for new api near zypp import
JF Ding [Thu, 22 Sep 2011 09:27:05 +0000 (17:27 +0800)]
zypp: move the checking for new api near zypp import

12 years agominor changes of commments
JF Ding [Thu, 22 Sep 2011 06:09:00 +0000 (14:09 +0800)]
minor changes of commments

12 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'"

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

12 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"

12 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

12 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"

12 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'

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

12 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

12 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.

12 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

12 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]

12 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

12 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>
12 years agoRemove the temporary dir 'srcmnt'
Shuangquan Zhou [Tue, 20 Sep 2011 02:41:59 +0000 (10:41 +0800)]
Remove the temporary dir 'srcmnt'

12 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

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

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

12 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.

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

12 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

12 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.

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

Remove the redundant code.

12 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

12 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

12 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

12 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

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

12 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

12 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

12 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.

12 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

12 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

12 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>
12 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>
12 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>
12 years agohide the private part
JF Ding [Tue, 13 Sep 2011 02:13:22 +0000 (19:13 -0700)]
hide the private part

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

12 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

12 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

12 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>
12 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

12 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>
12 years agomore effitient logfile saving
JF Ding [Mon, 12 Sep 2011 13:06:19 +0000 (06:06 -0700)]
more effitient logfile saving

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

12 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

12 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

12 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

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

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

12 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

12 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."

12 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"

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

12 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>
12 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>
12 years agoremove redundant module importing
JF Ding [Thu, 8 Sep 2011 06:47:14 +0000 (15:47 +0900)]
remove redundant module importing

12 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

12 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

12 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