JF Ding [Wed, 19 Oct 2011 08:51:08 +0000 (16:51 +0800)]
move create_release code to BaseImage class
JF Ding [Wed, 19 Oct 2011 07:40:21 +0000 (15:40 +0800)]
safe exit for FileLock for cleanup
JF Ding [Wed, 19 Oct 2011 07:20:06 +0000 (15:20 +0800)]
mod namespace typo
Gui Chen [Wed, 19 Oct 2011 07:30:08 +0000 (15:30 +0800)]
Add '--cachedir' option for creator
Signed-off-by: Gui Chen <gui.chen@intel.com>
Zhang Qiang [Wed, 19 Oct 2011 03:42:53 +0000 (11:42 +0800)]
msger: print msger.warning and msger.error info to stdout if enable catch stderr
JF Ding [Tue, 18 Oct 2011 08:05:36 +0000 (16:05 +0800)]
minor fixings
Zhang Qiang [Tue, 18 Oct 2011 08:40:40 +0000 (16:40 +0800)]
Serialize loopback device allocattion for multiple mic instances
This patch is backported from two old mic2 patches:
9cc0159a73aa4363900005365e29b89dc03e8aab
845214931e14c0dce50b5bb70a0b82f63eda0b3b
Jian-feng Ding [Mon, 17 Oct 2011 09:32:23 +0000 (17:32 +0800)]
Merge "baseimge: unmount before clean up yum garbage"
Zhang Qiang [Mon, 17 Oct 2011 10:00:45 +0000 (18:00 +0800)]
baseimge: unmount before clean up yum garbage
Gui Chen [Mon, 17 Oct 2011 08:44:14 +0000 (16:44 +0800)]
need not to write configs fot latest uxlaunch
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 17 Oct 2011 08:40:43 +0000 (16:40 +0800)]
check qemu version >= 0.13.0 for armv7
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 17 Oct 2011 08:35:01 +0000 (16:35 +0800)]
update README.rst
Signed-off-by: Gui Chen <gui.chen@intel.com>
Jian-feng Ding [Mon, 17 Oct 2011 08:18:19 +0000 (16:18 +0800)]
Merge "skip unavailable source package"
JF Ding [Mon, 17 Oct 2011 08:01:04 +0000 (16:01 +0800)]
minor fixings for style
Gui Chen [Mon, 17 Oct 2011 07:14:37 +0000 (15:14 +0800)]
skip unavailable source package
Signed-off-by: Gui Chen <gui.chen@intel.com>
Zhang Qiang [Mon, 17 Oct 2011 05:46:34 +0000 (13:46 +0800)]
zypp: fix local repo support issue
Don't use hard code local repo structure, get local repo structure from
repo metadata.
Zhang Qiang [Mon, 17 Oct 2011 05:45:31 +0000 (13:45 +0800)]
zypp: sort PoolQuery result by version
if multi version packages exist in repo, always select the highest
version to install.
Zhang Qiang [Mon, 17 Oct 2011 05:44:45 +0000 (13:44 +0800)]
zypp:support the dotted package name in ks
such as:
com.substanceofcode.kasvopus
com.substanceofcode.kasvopus.armv7hl
arch type would also be checked.
Zhang Qiang [Mon, 17 Oct 2011 05:44:09 +0000 (13:44 +0800)]
zypp: get correct package arch
Zhang Qiang [Mon, 17 Oct 2011 05:43:13 +0000 (13:43 +0800)]
Gracefully handle the case only delta rpm is available
Note: yum doesn't support delta rpm, if only .drpm is available in,
repo mic2 will fail with an uncatched exception, this commit
will catch such exception and tell the user what happened, fix
bug #12993
Zhang Qiang [Mon, 17 Oct 2011 05:42:54 +0000 (13:42 +0800)]
yum:fixed the issue about yum's exception,BMC#4944
Zhang Qiang [Mon, 17 Oct 2011 05:42:18 +0000 (13:42 +0800)]
msger: add stderr logger interface
Add enable_logstderr and disable_logstderr to log information printed to
stderr.
Catch backend package install error.
JF Ding [Thu, 13 Oct 2011 04:11:06 +0000 (12:11 +0800)]
minor changes for license list format
Jian-feng Ding [Thu, 13 Oct 2011 04:04:43 +0000 (12:04 +0800)]
Merge "Add --record-pkgs option to output more package info"
Zhang Qiang [Thu, 13 Oct 2011 03:20:30 +0000 (11:20 +0800)]
Add --record-pkgs option to output more package info
Record the installed packages info, valid values are: name, content,
license. --release options would add 'name' to record_pkgs.
User can specify multi-values using comma, such as follow example:
--record-pkgs=name,license
JF Ding [Wed, 12 Oct 2011 09:11:10 +0000 (17:11 +0800)]
remove /var/lib/yum, /var/cache/yum in target image
no used for current supported images which using zypp
merge back from mic2
JF Ding [Wed, 12 Oct 2011 09:05:00 +0000 (17:05 +0800)]
problem in create_release() for MANIFEST writing
JF Ding [Wed, 12 Oct 2011 04:14:50 +0000 (12:14 +0800)]
Keep /etc/mtab intact if it is a symlink
merge back bugfix from mic2
JF Ding [Tue, 11 Oct 2011 07:30:06 +0000 (15:30 +0800)]
support taring all loop imgs to a single file
--taring-to option to specify it
Jian-feng Ding [Mon, 10 Oct 2011 11:18:50 +0000 (19:18 +0800)]
Merge "yum: unify the install output info with zypp"
Zhang Qiang [Mon, 10 Oct 2011 10:31:06 +0000 (18:31 +0800)]
yum: unify the install output info with zypp
JF Ding [Mon, 10 Oct 2011 09:20:45 +0000 (17:20 +0800)]
make loop image type support multiple partitions
which can be specified in kickstart, with the following feilds:
mountpoint, fstype, size, label
Each particition will be generate as one separate image with the file
name as the one --label specified, else using kickstart name or
partition name.
JF Ding [Mon, 10 Oct 2011 08:23:40 +0000 (16:23 +0800)]
remove unused options for loop type
JF Ding [Mon, 10 Oct 2011 02:55:13 +0000 (10:55 +0800)]
unify the license header of all files
Zhang Qiang [Sun, 9 Oct 2011 09:20:10 +0000 (17:20 +0800)]
yum: fix a typo.
Jian-feng Ding [Sat, 8 Oct 2011 11:01:35 +0000 (19:01 +0800)]
Merge "zypp: recording correct package info for local rpm"
JF Ding [Sat, 8 Oct 2011 10:01:19 +0000 (18:01 +0800)]
update README for better blockquote
and cleanup all trailing spaces
Zhang Qiang [Sat, 8 Oct 2011 06:33:43 +0000 (14:33 +0800)]
zypp: recording correct package info for local rpm
JF Ding [Sat, 8 Oct 2011 05:21:11 +0000 (13:21 +0800)]
make clean up mtab selectable in umount()
Zhang Qiang [Sat, 8 Oct 2011 05:28:42 +0000 (13:28 +0800)]
zypp: Catch more error msg from rpm transaction results
Zhang Qiang [Sat, 8 Oct 2011 05:27:17 +0000 (13:27 +0800)]
KickstartConfig: add more directory checking
Huaxu Wan [Sat, 8 Oct 2011 05:19:20 +0000 (13:19 +0800)]
Merge "zypp: Catch more error msg from rpm transaction results"
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
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>
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
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.
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.
Zhang Qiang [Fri, 30 Sep 2011 03:28:02 +0000 (11:28 +0800)]
zypp: fix a typo error
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"
Zhang Qiang [Thu, 29 Sep 2011 08:25:50 +0000 (16:25 +0800)]
zypp: fix issue of two package exist in one repo
Jian-feng Ding [Thu, 29 Sep 2011 07:03:07 +0000 (15:03 +0800)]
Merge "Print package name while installing packages"
Jian-feng Ding [Thu, 29 Sep 2011 07:02:53 +0000 (15:02 +0800)]
Merge "baseimager: change the mode of 'tmp' dir"
Zhang Qiang [Thu, 29 Sep 2011 06:00:22 +0000 (14:00 +0800)]
Print package name while installing packages
Zhang Qiang [Thu, 29 Sep 2011 05:04:20 +0000 (13:04 +0800)]
baseimager: change the mode of 'tmp' dir
JF Ding [Tue, 27 Sep 2011 02:56:34 +0000 (10:56 +0800)]
append README with ext-name for format
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>
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
Jian-feng Ding [Mon, 26 Sep 2011 09:52:08 +0000 (17:52 +0800)]
Merge "Add 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>
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.
Zhang Qiang [Fri, 23 Sep 2011 10:16:34 +0000 (18:16 +0800)]
baseimager: revert original changes
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
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.
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.
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>
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>
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.
Jian-feng Ding [Fri, 23 Sep 2011 07:16:48 +0000 (15:16 +0800)]
Merge "zypp: 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.
JF Ding [Thu, 22 Sep 2011 10:04:06 +0000 (18:04 +0800)]
check the exists of ksfile before parsing
JF Ding [Thu, 22 Sep 2011 09:58:36 +0000 (17:58 +0800)]
show available pkgmgrs if invalid one encountered
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*
JF Ding [Thu, 22 Sep 2011 09:27:05 +0000 (17:27 +0800)]
zypp: move the checking for new api near zypp import
JF Ding [Thu, 22 Sep 2011 06:09:00 +0000 (14:09 +0800)]
minor changes of commments
Jian-feng ding [Thu, 22 Sep 2011 06:16:45 +0000 (14:16 +0800)]
Merge "Fixed a issue about 'include_src'"
Zhang Qiang [Thu, 22 Sep 2011 06:16:41 +0000 (14:16 +0800)]
yum: set persistdir
Jian-feng ding [Thu, 22 Sep 2011 05:47:03 +0000 (13:47 +0800)]
Merge "zypp: check arch of local rpm"
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
Jian-feng ding [Thu, 22 Sep 2011 03:45:51 +0000 (11:45 +0800)]
Merge "zypp: remove the zypp_install function"
Shuangquan Zhou [Wed, 21 Sep 2011 08:40:07 +0000 (16:40 +0800)]
Fixed a issue about 'include_src'
JF Ding [Wed, 21 Sep 2011 02:08:32 +0000 (10:08 +0800)]
Merge "Correct release option show"
JF Ding [Tue, 20 Sep 2011 11:11:58 +0000 (19:11 +0800)]
avoid importing ext modules in yum plugin
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.
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
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]
Shuangquan Zhou [Tue, 20 Sep 2011 08:27:03 +0000 (16:27 +0800)]
Cleanup temporary dirs, even if convertor fails
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>
Shuangquan Zhou [Tue, 20 Sep 2011 02:41:59 +0000 (10:41 +0800)]
Remove the temporary dir 'srcmnt'
Shuangquan Zhou [Tue, 20 Sep 2011 01:54:45 +0000 (09:54 +0800)]
Corrected a mistake of fs_plugin
JF Ding [Mon, 19 Sep 2011 11:47:13 +0000 (19:47 +0800)]
Merge "zypp: cleanup code"
JF Ding [Mon, 19 Sep 2011 09:29:01 +0000 (17:29 +0800)]
namespace typo fixed
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.
JF Ding [Fri, 16 Sep 2011 10:58:07 +0000 (19:58 +0900)]
better error output for CreateError
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
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.
Zhang Qiang [Fri, 16 Sep 2011 09:49:21 +0000 (17:49 +0800)]
zypp: cleanup code
Remove the redundant code.
JF Ding [Fri, 16 Sep 2011 02:38:10 +0000 (11:38 +0900)]
Makefile: make dist to remember the git commit id
JF Ding [Fri, 16 Sep 2011 02:24:07 +0000 (11:24 +0900)]
fixed the remain mod import problems
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
JF Ding [Thu, 15 Sep 2011 09:52:14 +0000 (18:52 +0900)]
rm the unnecessary pykickstart import of zypp plugin