[Yum-devel] test message for migration to baseurl.org

2008-09-25 Thread seth vidal
We're migrating everything to baseurl.org care of osuosl.org. This is a test message, please bear with us. -sv ___ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel

[Yum-devel] bounce

2008-09-25 Thread seth vidal
bounce bounce -- I only speak for me. ___ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel

[Yum-devel] once more

2008-09-25 Thread seth vidal
with feeling Sorry for the noise everyone. -sv -- I only speak for me. ___ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel

[Yum-devel] Yum Site/List/Bug Tracking changes

2008-09-30 Thread seth vidal
Hi Folks, Some of you have already noticed that we're going through some changes for yum's website and mailing list. We've been moving all the hosting and mailing lists off of linux.duke.edu's resources and onto a system provided by OSUOSL - Oregon State University Open Source Labs. In order to do

Re: [Yum-devel] [PATCH] Subclass ConfigParser so that the options don't get lowercased. This is important given that they are path names.

2008-10-03 Thread seth vidal
On Fri, 2008-10-03 at 11:21 -0700, Jesse Keating wrote: > On Fri, 2008-10-03 at 14:10 -0400, seth vidal wrote: > > On Fri, 2008-10-03 at 09:34 -0700, Jesse Keating wrote: > > > This patch is necessary, as we store file paths as config options. By > > > default, Config

Re: [Yum-devel] [PATCH] Subclass ConfigParser so that the options don't get lowercased. This is important given that they are path names.

2008-10-03 Thread seth vidal
On Fri, 2008-10-03 at 09:34 -0700, Jesse Keating wrote: > This patch is necessary, as we store file paths as config options. By > default, ConfigParser will both create and read options as all lower > case. That plays havoc with files that have upper case in them, like > *-PAE. I've patched pung

Re: [Yum-devel] pipe deadlock

2008-10-17 Thread seth vidal
On Fri, 2008-10-17 at 10:30 -0400, Mike McLean wrote: > The RPMTransaction creates a pipe and hands the write end to > rpm.setLogFile in order to catch scriptlet output. This will cause > pipe deadlock when rpmlib generates a large enough amount of log > output outside of the scriptlets. Output suc

Re: [Yum-devel] Tags, release and re-solving a few old problems

2008-10-23 Thread seth vidal
On Thu, 2008-10-23 at 14:01 -0400, James Antill wrote: > The latest 3.2.19 in rawhide/Fedora 10 parses out the tags data > recently discussed on the rpm-metadata list, and createrepo can add it > in. So I'm planning on re-solving a couple of problems, and adding a > plugin to do some new stuff. Ple

Re: [Yum-devel] Tags, release and re-solving a few old problems

2008-10-24 Thread seth vidal
On Fri, 2008-10-24 at 08:45 -0400, James Antill wrote: > On Fri, 2008-10-24 at 07:46 +0200, Tim Lauridsen wrote: > > seth vidal wrote: > > > I think we'll need to preserve compat with older repos for quite a > > > while. > > > > > Yes, we can add

Re: [Yum-devel] YumBase.preconf ... to get rid of doConfigSetup etc.

2008-10-24 Thread seth vidal
On Fri, 2008-10-24 at 15:06 -0400, James Antill wrote: > Here's a patch Seth and I talked about for how we can easily get rid of > doConfigSetup() etc. when we break the API, without having to do lots of > code changes all over the place at the same time. > > The basic idea is that if you want to

Re: [Yum-devel] YumBase.preconf ... to get rid of doConfigSetup etc.

2008-10-24 Thread seth vidal
On Fri, 2008-10-24 at 15:36 -0400, James Antill wrote: > On Fri, 2008-10-24 at 15:13 -0400, seth vidal wrote: > > Would it make more sense to allow ANY config attribute to be set rather > > than specifying them? I know it would be tricky to ensure but it would > > mean not hav

Re: [Yum-devel] YumBase.preconf ... to get rid of doConfigSetup etc.

2008-10-24 Thread seth vidal
On Fri, 2008-10-24 at 17:10 -0400, James Antill wrote: > On Fri, 2008-10-24 at 16:52 -0400, seth vidal wrote: > > On Fri, 2008-10-24 at 15:36 -0400, James Antill wrote: > > > On Fri, 2008-10-24 at 15:13 -0400, seth vidal wrote: > > > > Would it make more sense to al

[Yum-devel] pain and suffering and allowdowngrade

2008-10-24 Thread seth vidal
Been thinking about allowdowngrade. How does that work for things like this: yum --allowdowngrade update \* Does that revert you back to GA of your distro? If we bit the bullet and put in a downgrade command or implemented it in plugin what is the behavior for it? I'm not looking for bikeshedd

Re: [Yum-devel] New yum plugin: RPM database caching

2008-10-27 Thread seth vidal
On Thu, 2008-10-16 at 19:57 +0200, Ralf Ertzinger wrote: > Hi all. > > I wrote a little plugin today which intends to speed up yum operations > which access the RPM database. > Committed this plugin as rpm-warm-cache it'll be in the next yum-utils release. If the functionality works well it m

Re: [Yum-devel] pain and suffering and allowdowngrade

2008-10-28 Thread seth vidal
On Fri, 2008-10-24 at 15:49 -0700, Skahan, Vince wrote: > How would the system know what version to downgrade to ? User specified or, whatever is lowest? > Consider the > case where you've done multiple updates of a particular package along > the way and you want to go to some intermediate st

Re: [Yum-devel] Translation of debug messages.

2008-10-30 Thread seth vidal
On Thu, 2008-10-30 at 09:12 +0100, Tim Lauridsen wrote: > I have thought a little about the craziness i introduced myself, by > enabling all debug messages to be translatable. > > * a lot more work for the translator. > * some of the debug messages is very complex and hard to translate to > an

Re: [Yum-devel] pain and suffering and allowdowngrade

2008-11-04 Thread Seth Vidal
On Tue, 4 Nov 2008, Charlie Brady wrote: > I think it would be folly to encourage that thinking. The scriplets are > the fatal flaw in my mind - they are mostly one-way transformations. I > don't think the package manager is capable of supporting rollbacks - if > the users need that, then file s

Re: [Yum-devel] pain and suffering and allowdowngrade

2008-11-05 Thread Seth Vidal
> Confused. > > Historically there are feature requests for relatively easy things that > have been denied due to fear of (1) below. Most notable example for me > is the multiple requests for new yum --force and --nodeps switches ala > rpm which come up frequently. > > Answer for that one is always

[Yum-devel] Goal-like things for next few months

2008-11-13 Thread Seth Vidal
A set of things I want to work on as Fedora starts into the F11 cycle. Things followed by question marks are questionable. Yum: - keyword metadata searching/tag browsing - db to store yum-specific info about packages - barring that rpm doesn't end up letting us do this? - merge yum-complete-tran

Re: [Yum-devel] Update for rpm-warm-cache

2008-11-21 Thread Seth Vidal
On Fri, 21 Nov 2008, James Antill wrote: > On Fri, 2008-11-21 at 15:23 +0100, Ralf Ertzinger wrote: >> Hi all. >> >> There's a small bug in rpm-warm-cache that causes some commands to >> fail while the plugin is enabled. >> >> A working version is attached. Please update. > > Added upstream, tha

Re: [Yum-devel] Update for rpm-warm-cache

2008-11-21 Thread Seth Vidal
On Fri, 21 Nov 2008, Ralf Ertzinger wrote: > Hi. > > On Fri, 21 Nov 2008 17:20:23 +0100, Tim Lauridsen wrote: > >> This is fine when you are yum from the cli, but when you are running >> from application using yum api, like yumex and packagekit, then the >> plugin will do nothing, because you do

Re: [Yum-devel] pain and suffering and allowdowngrade

2008-11-26 Thread Seth Vidal
On Wed, 26 Nov 2008, James Braid wrote: > seth vidal wrote: >> Been thinking about allowdowngrade. >> >> How does that work for things like this: >> >> yum --allowdowngrade update \* >> >> Does that revert you back to GA of your distro? >> >

Re: [Yum-devel] pain and suffering and allowdowngrade

2008-12-01 Thread Seth Vidal
On Wed, 26 Nov 2008, James Braid wrote: > Seth Vidal wrote: >>> It would be nice if this simple use case was possible. I think anything >>> more complex (downgrading your entire distro) isn't really useful in the >>> real world. So yes, I think downgrade s

Re: [Yum-devel] cant commit to git :(

2008-12-17 Thread Seth Vidal
On Wed, 17 Dec 2008, Tim Lauridsen wrote: > I get some errors when commiting to git. > > Counting objects: 9, done. > Compressing objects: 100% (6/6), done. > Writing objects: 100% (6/6), 1.69 KiB, done. > Total 6 (delta 4), reused 0 (delta 0) > error: Unable to append to logs/refs/heads/master:

Re: [Yum-devel] [PATCH] yum-utils: repoclosure for single package

2008-12-25 Thread seth vidal
On Thu, 2008-12-25 at 16:44 +0100, Tim Lauridsen wrote: > Kedar Sovani wrote: > > Check for the repoclosure of a single package. > > > > Usecase: My automation scripts wanted to query the yum repositories for > > closure of a single package, instead of spending time on checking the > > closure for

Re: [Yum-devel] [PATCH] yum-utils: repoclosure for single package

2008-12-25 Thread seth vidal
On Thu, 2008-12-25 at 20:11 +0100, Jeroen van Meeuwen wrote: > Another thought; should it check for conflicts with other packages as > well? Maybe it'd just be informational, but since FP.o doesn't fancy > conflicts... > I don't think of conflict as a function of closure. -sv _

[Yum-devel] yum 3.2.21 released

2009-01-14 Thread seth vidal
Hi Folks, Yum 3.2.21 is released. It is mostly filled with bugfixes. Significant items: Fixes: - skip-broken should work in more cases - translation fixes and utf8 ugliness - fixed up some deprecation warnings for python 2.6 Tarball: http://yum.baseurl.org/download/3.2/yum-3.2.21.tar.gz SRPM:

Re: [Yum-devel] Couple of fixes for ARM arch

2009-01-23 Thread seth vidal
On Fri, 2009-01-23 at 23:26 +0200, Alexander Kanevskiy wrote: > Hi. > > > I've tried to run Fedora/ARM on quite new board and found out that > ARMv6 and ARMv7 not working in current version of yum. > Fixes from patches attached should be fixing both issues for armv6l > and armv7l. applied - I

Re: [Yum-devel] kernel module plugins

2009-01-29 Thread seth vidal
On Thu, 2009-01-29 at 20:37 +0100, Tim Lauridsen wrote: > There is a couple of plugins for handling kernel modules in yum-utils > Based on the discussion in > > https://bugzilla.redhat.com/show_bug.cgi?id=482893 > > and others > there there some problem with the plugins and the 3 part repos > co

Re: [Yum-devel] kernel module plugins

2009-01-29 Thread seth vidal
On Thu, 2009-01-29 at 14:55 -0500, James Antill wrote: > Well we needed "yum-kmod" for RHEL/CentOS 5 ... and I haven't heard > that we won't need it for version 6. > Obviously we could put it in a separate package, but then we could do > that for most of yum-utils and if it wasn't for the fact t

Re: [Yum-devel] Fix deprecation warning in fedorakmod.py

2009-02-11 Thread seth vidal
On Wed, 2009-02-11 at 08:15 +0100, Felix Schwarz wrote: > Hi, > > The sets module is deprecated in Python 2.6 and 'set' is a built-in type since > Python 2.4. However by applying this change the module becomes incompatible > with Python 2.3. If it needs to be compatible, do this in the import: > t

Re: [Yum-devel] Qs regarding YUM design doc

2009-02-12 Thread seth vidal
On Thu, 2009-02-12 at 19:33 -0800, Creative Innovative wrote: > Hi All, > > Does someone know, if there is any design documentation for YUM source > code. > > > > I am trying to understand the flows for various use-cases, for package > install/upgrade and so on. > > If there is any such docu

Re: [Yum-devel] kernel module plugins

2009-02-25 Thread seth vidal
On Wed, 2009-02-25 at 14:03 -0500, Jack Neely wrote: > On Wed, Feb 25, 2009 at 03:01:11PM +0100, Tim Lauridsen wrote: > > Tim Lauridsen wrote: > >> There is a couple of plugins for handling kernel modules in yum-utils > >> Based on the discussion in > >> > >> https://bugzilla.redhat.com/show_bug.cg

Re: [Yum-devel] [yum-commits] repoclosure.py

2009-03-04 Thread seth vidal
On Wed, 2009-03-04 at 10:16 +0100, Tim Lauridsen wrote: > James Antill wrote: > > repoclosure.py |4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > New commits: > > commit f7a73716cf9e0ec248eb06992378d60a779a1fd4 > > Author: James Antill > > Date: Tue Mar 3 11:55:59 2009 -

[Yum-devel] Yum Bug Day - March 6, 2009!

2009-03-04 Thread seth vidal
Hi all, leading up to the F11 feature freeze we'd like to have a yum bug day. A bug day is where we sift the currently open bugs against yum, yum-utils and createrepo and try to kill all of them that we can. We'll start in the morning (whenever morning is for you) on Friday March 6th and end ev

Re: [Yum-devel] Running yum-complete-transaction fails for some packages.

2009-03-11 Thread Seth Vidal
On Wed, 11 Mar 2009, Creative Innovative wrote: All,   I found the reason for the failures listed in my previous email below, when I used yum-complete-transaction.   yum-complete-transaction LACKS SELINUX PRIVELEGES.   After I added selinux privelge, which was easy, chcon --reference=/usr/bin

[Yum-devel] Yum 3.2.22 released

2009-03-24 Thread Seth Vidal
Hi all, Yum 3.2.22 has been released. There are a fair number of changes since the last release. The overwhelming majority are closing some long standing and sometimes deeply confusing bugs. :) tarball: http://yum.baseurl.org/download/3.2/yum-3.2.22.tar.gz srpm: http://yum.baseurl.org/dow

Re: [Yum-devel] febootstrap on non-fedora systems

2009-03-26 Thread Seth Vidal
On Thu, 26 Mar 2009, Mark Rosenstand wrote: (CC'ing yum-devel since my best guess is that this is a bug in yum. Thread summary: trying to get febootstrap - gitweb link below - running on a non-fedora system using vanilla rpm 4.7.0-beta1 and yum 3.2.21.) On Wed, Mar 25, 2009 at 8:13 PM, Richar

Re: [Yum-devel] yum pylint

2009-03-30 Thread Seth Vidal
On Mon, 30 Mar 2009, Tim Lauridsen wrote: Tim Lauridsen wrote: I have added the following tags to the yum Makefile. make pylint (Show pylint warnings and errors, the most crazy stuff is disabled in the profile test/yum-pylintrc) http://timlau.fedorapeople.org/files/yum/yum-pylint.txt and

Re: [Yum-devel] Using yum as deps checker

2009-03-30 Thread Seth Vidal
On Mon, 30 Mar 2009, Stephen Childs wrote: Hi, We have our own packager as part of the quattor toolkit (http://quattor.org). Basically it ensures that all the packages in a defined list are installed on a machine (it has no dependency checking). We would like to do some dependency checking

Re: [Yum-devel] Using yum as deps checker

2009-03-30 Thread Seth Vidal
that's so obvious, yet there is no command line way to do it that I could find. I used the following Python snippet (actually created originally by Seth Vidal): import yum import yum.misc import sys yb = yum.YumBase () basepkg = yb.pkgSack.returnPackages (patterns=[sys.argv[1]])[0] deps =

Re: [Yum-devel] Using yum as deps checker

2009-03-30 Thread Seth Vidal
On Mon, 30 Mar 2009, Stephen Childs wrote: Seth Vidal wrote: Set up a transaction set. Then call resolveDeps. Then do: for txmbr in YumBaseObject.tsInfo.getMembers(): if txmbr.name not in my_list_of_pkgs_I_have: my_list_of_pkgs_I_have.append(txmbr) or something along those

Re: [Yum-devel] Using yum as deps checker

2009-03-31 Thread Seth Vidal
On Tue, 31 Mar 2009, Stephen Childs wrote: Thanks. One more question: will resolveDeps remove packages to resolve conflicts? If so, is there a list of the packages it has removed? If not, is there another way to detect conflicts? I have dug around in the code but can't work it out. resolv

Re: [Yum-devel] Using yum as deps checker

2009-03-31 Thread Seth Vidal
On Tue, 31 Mar 2009, Stephen Childs wrote: This is a file conflict - do you have jdk-1.5.0_14-fcs installed in one arch and available in another arch? B/c the above report seems confusing. Yes it is listed in the package list (and hence transaction set) for both i586 and x86_64. Is there a

Re: [Yum-devel] Repo doSetup progress snafu (damn pylint highliting our bugs :)

2009-04-06 Thread Seth Vidal
On Sun, 5 Apr 2009, Tim Lauridsen wrote: I fix it :), because it make no sense to call the callback outside the repo loop and it could be useful in a gui to have a callback for each repo, but agree that today, it is not a big problem because the repo setup is quite fast, so it is not neede

Re: [Yum-devel] I'm the new maintainer for yum in Debian

2009-04-06 Thread Seth Vidal
On Mon, 6 Apr 2009, Thomas Goirand wrote: Especially: 0001: this one is very small and wont hurt Why is this necessary at all? Is there an install somewhere that doesn't support {} 0002: is sqlite 1 still available somewhere? Potentially. Why does it matter? 0004: where exactly did y

Re: [Yum-devel] Depsolving I don't understand

2009-04-06 Thread Seth Vidal
On Mon, 6 Apr 2009, James Antill wrote: On Sun, 2009-04-05 at 23:01 +0200, Jeroen van Meeuwen wrote: I found the following situation: On an x86_64 system, I get a list of package names (['foo']). I resolve the package names to actual available packages (pos), and select them all (sorry 'bout

Re: [Yum-devel] I'm the new maintainer for yum in Debian

2009-04-07 Thread Seth Vidal
On Tue, 7 Apr 2009, Thomas Goirand wrote: Seth Vidal wrote: On Mon, 6 Apr 2009, Thomas Goirand wrote: Especially: 0001: this one is very small and wont hurt Why is this necessary at all? Is there an install somewhere that doesn't support {} When you just asked, I was not 100%,

Re: [Yum-devel] primary.xml rpm hash

2009-04-22 Thread Seth Vidal
On Wed, 22 Apr 2009, christopher floess wrote: Hi, I'm doing some research into the workings of yum, and one of the things I'm stuck on is how the hash for a package is generated. As an example, I took a look the information for nano-2.0.6-4.fc9.i386.rpm In http://fedora.ifc.unam.mx/releases/

Re: [Yum-devel] Qs regarding YUM code

2009-04-23 Thread Seth Vidal
On Thu, 23 Apr 2009, Creative Innovative wrote: Thanks James.   Actually I have written a YUM plugin, so that after YUM completes RPM Transaction Test, I will be calling an api(similar to ts_all api in rpmtrans.py), that will dump the transaction file, and exits YUM.   Why? And why do you

Re: [Yum-devel] Qs regarding YUM code

2009-04-23 Thread Seth Vidal
On Thu, 23 Apr 2009, Creative Innovative wrote: Qs1) In cli.py after running a RPM test transaction. What is the need to create a new transaction, and re-populate ts, for running real RPM transaction. Isnt this a performance hit. Unless, there is any strange RPM side-effect, I think it would

Re: [Yum-devel] Yum-devel Digest, Vol 61, Issue 11

2009-04-23 Thread Seth Vidal
On Thu, 23 Apr 2009, Creative Innovative wrote: Hi SV,   You have mentioned below that if you setup a test ts and run it, you would need a new one, to run real transaction. I am doing something similar in C using rpm apis, and I am able to pass the same rpm ts object(used for RPM test) and t

Re: [Yum-devel] Qs regarding YUM code

2009-04-27 Thread Seth Vidal
On Mon, 27 Apr 2009, Panu Matilainen wrote: On Thu, 23 Apr 2009, Seth Vidal wrote: On Thu, 23 Apr 2009, Creative Innovative wrote: Qs1) In cli.py after running a RPM test transaction. What is the need to create a new transaction, and re-populate ts, for running real RPM transaction. Isnt

Re: [Yum-devel] [PATCH] yummain.py: change e to e.value in to_unicode function

2009-04-27 Thread Seth Vidal
On Thu, 8 Jan 2009, WangLi wrote: Dear, all When gpgcheck is enabled in repo file but the rpm packages are not signed, yum will donot install the message and have no any message using 'yum install packagename'.The following patch will solve the problem: --- yum-3.2.19/yummain.py.old 2009

Re: [Yum-devel] [UG] RFE for ulrgrabber - print url when 404

2009-04-27 Thread Seth Vidal
On Mon, 9 Feb 2009, Jesse Keating wrote: I'm using urlgrabber to watch some repos for changes, and during my development I got a few 404s. This is good because I'm using urlgrabber so that it'll actually error on 404, rather than output the 404 headers. However in the traceback the url that w

Re: [Yum-devel] rpm --requires and primary.xml

2009-04-30 Thread Seth Vidal
On Thu, 30 Apr 2009, christopher floess wrote: Hi, when I run rpm -qp --requires, I noticed that there are two lines that are missing in primary.xml under the tag Here is the rpm command $ rpm -qp --requires nano-2.0.6-4.fc9.i386.rpm /bin/sh /bin/sh /sbin/install-info /sbin/install-info lib

Re: [Yum-devel] rpm --requires and primary.xml

2009-04-30 Thread Seth Vidal
On Thu, 30 Apr 2009, Florian Festi wrote: Seth Vidal wrote: the parser omits them b/c they aren't REAL dependencies. They are added by rpm to note whether or not the running version of rpm can interact with the pkgs at all. But they are not deps that are 'satisfied' in anyw

Re: [Yum-devel] rpm --requires and primary.xml

2009-04-30 Thread Seth Vidal
On Thu, 30 Apr 2009, Seth Vidal wrote: We've discussed putting them in the repomd.xml so you know that "this repo" needs this set of rpm capabilities. just to avoid dumping a lot of mindless metadata here. but, again, the BEST CASE is that you have to stop what the u

Re: [Yum-devel] rpm --requires and primary.xml

2009-05-06 Thread Seth Vidal
On Wed, 6 May 2009, Panu Matilainen wrote: And you'd have to restart yum (or manage to unload and reload the rpm module entirely) after such update, otherwise yum would still be using the older librpm. Putting the rpmlib() provides into regular provides of the rpm package would be wrong as

Re: [Yum-devel] [PATCH] Catch error opening repo files

2009-05-13 Thread Seth Vidal
On Wed, 13 May 2009, Jeremy Katz wrote: Rather than requiring higher level callers to catch the error, we should catch the error at the low-level when opening the repo file and turn it into a RepoMDError. Related to rh bz#500526 yah - that looks kosher - though it might technically be an AP

Re: [Yum-devel] [PATCH] Catch error opening repo files

2009-05-13 Thread Seth Vidal
On Wed, 13 May 2009, James Antill wrote: On Wed, 2009-05-13 at 14:16 -0400, Jeremy Katz wrote: Rather than requiring higher level callers to catch the error, we should catch the error at the low-level when opening the repo file and turn it into a RepoMDError. Related to rh bz#500526 Not th

Re: [Yum-devel] [UG] RFE for ulrgrabber - print url when 404

2009-05-15 Thread Seth Vidal
On Mon, 27 Apr 2009, Jeremy Katz wrote: On Monday, April 27 2009, Seth Vidal said: There are two ways I can think of doing this: 1. put it in the error message results - ugly in terms of it potentially being A LOT of text but trivial to do in the code 2. adding a .url attribute to the

[Yum-devel] yum 3.2.23 released

2009-05-21 Thread Seth Vidal
Hi folks, Yum 3.2.23 is available. Yet more bugfixes and a fair number of new items: - downgrade command - you can now run (in a limited sense) downgrades. It's not guaranteed to depsolve properly but if you specify the pkgs properly it should download and work. Useful for reverting a broke

Re: [Yum-devel] group DB

2009-05-26 Thread Seth Vidal
On Fri, 22 May 2009, James Antill wrote: Some thoughts about group DB (having groups as real objects). I mainly wrote this for me, to see if "group DB" was actually possible. I think so :). I think the "big" issue people want to change is that given: yum install blah-package-in-KDE-

Re: [Yum-devel] Yum Plug-in Development

2009-05-27 Thread Seth Vidal
On Fri, 22 May 2009, Brandon Galbraith wrote: Has anyone attempted to develop a plugin that interfaces to MySQL? I'm about to start working on a plug-in that can push the list of updates available into a mysql database, and wanted to see if anyone has been down this road before. I don't t

Re: [Yum-devel] Yum Plug-in Development

2009-05-27 Thread Seth Vidal
On Wed, 27 May 2009, Brandon Galbraith wrote: If someone else would find an XML web service useful, I'd be willing to go in that direction. Is anyone else looking for that sort of functionality? What are you looking to do for yourself? OR are you just trying to become familiar with writin

Re: [Yum-devel] Yum Plug-in Development

2009-05-27 Thread Seth Vidal
On Wed, 27 May 2009, Brandon Galbraith wrote: My goal is to provide a central location showing updates that need to be applied to various servers (similar to RHN, but without the remote control ability). My thought was to have yum auto update everything except some critical packages we use

Re: [Yum-devel] Equivalent to 'yum update' via Python API?

2009-05-28 Thread Seth Vidal
On Thu, 28 May 2009, MacCana, Mike \(London\) wrote: Hi folks,   I was wondering what the equiavlent to a 'yum update' via the API was? I've read the various snippets and 5 minute guide, and have working functions to install individual apps, but I can't seem to locate the right functions in

Re: [Yum-devel] How does YUM update YUM

2009-06-05 Thread Seth Vidal
On Fri, 5 Jun 2009, Creative Innovative wrote: Folks,   I am really curious to know, how does YUM take care of updating to a newer version of YUM.   Normally, when there is a package upgrade, the older version of the package is first erased, and then the newer version of the package is insta

Re: [Yum-devel] Making yum quiet - yum.logginglevels.setDebugLevel(0) seemingly not working...

2009-06-11 Thread Seth Vidal
On Thu, 11 Jun 2009, MacCana, Mike \(London\) wrote: Hi folks,   I'm installing a few packages using yum.YumBase.install in a postinstall. From the module docs, I gather setDebugLevel(0) should be the equivalent of a yum '--quiet', but alas, the following code...   def install():     yb = yum

Re: [Yum-devel] Making yum quiet - yum.logginglevels.setDebugLevel(0) seemingly not working...

2009-06-11 Thread Seth Vidal
On Thu, 11 Jun 2009, MacCana, Mike \(London\) wrote: -Original Message- From: yum-devel-boun...@lists.baseurl.org [mailto:yum-devel-boun...@lists.baseurl.org] On Behalf Of Seth Vidal Sent: 11 June 2009 16:19 To: yum development Subject: Re: [Yum-devel] Making yum quiet

Re: [Yum-devel] [yum-commits] Branch 'yum-3_2_X' - 3 commits - yum/__init__.py yum/packages.py

2009-06-19 Thread Seth Vidal
On Fri, 19 Jun 2009, James Antill wrote: if not hasattr(self, thing): raise AttributeError, "%s has no attribute %s" % (self, thing) -return self.hdr[thing] +try: +return self.hdr[thing] +except KeyError: +raise Attribu

Re: [Yum-devel] plugin to order downloads wrt size

2009-06-22 Thread Seth Vidal
On Mon, 22 Jun 2009, Rakesh Pandit wrote: Hello, I have written a small plugin to order downloads as per size : (users with variable bandwidth do find it useful) http://rakesh.fedorapeople.org/yum/yum-download-order-0.1.tar.gz http://rakesh.fedorapeople.org/srpm/yum-download-order-0.1-1.fc11

Re: [Yum-devel] plugin to order downloads wrt size

2009-06-22 Thread Seth Vidal
On Mon, 22 Jun 2009, Rakesh Pandit wrote: Suggestions and comments for improvement ? 1. dare I ask it - what difference does it make the order the pkgs are downloaded in? it is useful for people on low bandwidth connections as it makes it easier to get packages without having to cut a lar

Re: [Yum-devel] plugin to order downloads wrt size

2009-06-23 Thread Seth Vidal
On Tue, 23 Jun 2009, Rakesh Pandit wrote: 2009/6/22 Seth Vidal wrote: [..] 2. implementing your own downloadpkgs and overriding it is completely doomed. I just have one request ... may you either mave mediasort (nested function) out of function, so that it is accessible at

Re: [Yum-devel] plugin to order downloads wrt size

2009-06-25 Thread Seth Vidal
On Thu, 25 Jun 2009, Rakesh Pandit wrote: 2009/6/23 Seth Vidal wrote: [..] I don't want a separate hook just for sorting the pkgs but it might be reasonable to provide a way for a plugin/caller to provide their own mediasort function. Let me look at it a bit - but if you want to wo

Re: [Yum-devel] Man page fixes

2009-06-30 Thread Seth Vidal
On Sat, 13 Jun 2009, Thomas Goirand wrote: Hi, Please apply the attached patches to the current code base for inclusion in the next release. Thanks to these patches, man is not yelling. FYI, to test with man, you can use: LANG=C man --warnings -l yum.conf.5 >/dev/null It seems, by the way,

Re: [Yum-devel] Looking for help with a Yum plugin...

2009-07-17 Thread Seth Vidal
On Thu, 16 Jul 2009, Douglas Kilpatrick wrote: I'm trying to write a plugin to make it easier to manage packages on a host. The basic idea is that each host has a per-host package that has as it's requirements things I need the host to support. ie: foo.oppositelock.org-1.0-.noarch.rpm

Re: [Yum-devel] Looking for help with a Yum plugin...

2009-07-17 Thread Seth Vidal
On Fri, 17 Jul 2009, Douglas Kilpatrick wrote: Seth Vidal wrote: Now, yum will not automatically downgrade pkgs as a depresolving step - it's generally a bad idea anyway b/c it could very well mean downgrading into a security whole or walking to backward incompatible versions of thing

[Yum-devel] sending patches to the list first

2009-07-21 Thread Seth Vidal
Hi all, As James has just demonstrated, we're going to take a cue from the anaconda developers and start sending all patches to this list and getting any other committer to sign off on the patch(es) before committing them. This goes for all committers. It's not really a big pain in the ass

Re: [Yum-devel] [PATCH] Copy quick en/dis able to repos when repo is added

2009-07-21 Thread Seth Vidal
On Tue, 21 Jul 2009, James Antill wrote: --- yum/repos.py |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/yum/repos.py b/yum/repos.py index ac3e197..32d3426 100644 --- a/yum/repos.py +++ b/yum/repos.py @@ -97,6 +97,7 @@ class RepoStorage: raise Errors.Duplic

Re: [Yum-devel] [PATCH] Have pkgtup not be low in excluder, so we can use pkg.pkgtup (as we do)

2009-07-21 Thread Seth Vidal
On Tue, 21 Jul 2009, James Antill wrote: --- yum/sqlitesack.py |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py index 7f61190..e9b8112 100644 --- a/yum/sqlitesack.py +++ b/yum/sqlitesack.py @@ -150,14 +150,10 @@ def _excluder_ma

Re: [Yum-devel] [PATCH] Have pkgtup not be low in excluder, so we can use pkg.pkgtup (as we do)

2009-07-23 Thread Seth Vidal
On Thu, 23 Jul 2009, Tim Lauridsen wrote: Sending patches to the list is a good idea, but patch without commit messages, can be really hard to what the purpose for the patch is. the subject has the one-line comment -but I agree more info is helpful. Having said that I'm horrible at commi

Re: [Yum-devel] [PATCH] Run msgfmt using the python-format annotations

2009-07-27 Thread Seth Vidal
On Sun, 26 Jul 2009, James Antill wrote: From: Mads Kiilerich This patch detects errors like "Memory %s" => "Hukommelse %a" --- po/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/po/Makefile b/po/Makefile index 31257c4..aad596a 100644 --- a/po/Makefile +++ b

Re: [Yum-devel] [PATCH] Add testcase for old multiple arch conflicts problem.

2009-07-27 Thread Seth Vidal
On Mon, 27 Jul 2009, James Antill wrote: This was fixed a while ago, but the only testcase involves obsoletes too (testConflictMultiplePkgs). Bascially if we had two conflicts with the same resolution we'd fix the first one and then fail the second because we couldn't do anything. looks good

[Yum-devel] [UG] Urlgrabber 3.9.0 - pycurl-tastic

2009-07-31 Thread Seth Vidal
Hi all, A urlgrabber announcement. urlgrabber 3.9.0 is now released. Think of this as a beta-ish release. Most everything is working - but not all the unittests check out and I'm sure I've messed up some other bits. However, it is functional for yum and koji so far and I've tested A LOT of the

Re: [Yum-devel] [UG] Urlgrabber 3.9.0 - pycurl-tastic

2009-08-03 Thread Seth Vidal
On Mon, 3 Aug 2009, Tim Lauridsen wrote: I'd like to reiterate - this is a bit of a test version so please give it a try, tell me what is broken for any app that uses it and we'll get it put back together. But don't be shocked if not everything works perfectly. let me know what breaks, -sv

Re: [Yum-devel] [UG] Urlgrabber 3.9.0 - pycurl-tastic

2009-08-03 Thread Seth Vidal
On Mon, 3 Aug 2009, Mattias Hellström wrote: Works for me both with squid and the corporate at work (which is probably juniper). (I run F12 rawhide) Thank You! -sv ___ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/ma

Re: [Yum-devel] [PATCH] Fix "yum list y[u]*" to do the same as "yum list yu*".

2009-08-04 Thread Seth Vidal
On Tue, 4 Aug 2009, James Antill wrote: The problem is that SQL/sqlite has no mapping for [] to SQL's wildcard matching. So we currently load everything and do it via. parsePackages(). Except we forgot didn't remember, so returned everything. --- yum/sqlitesack.py |1 + 1 files changed, 1 i

Re: [Yum-devel] [PATCH] If the rpm trans. test check fails due to rpmlib, tell the user.

2009-08-04 Thread Seth Vidal
On Tue, 4 Aug 2009, James Antill wrote: We have had significant rpmlib problems, with SHA256 and Xz etc. so we might as well look for it and tell the user not to put stuff in yum's Bug DB. go ahead and commit this - I had something similar in mind to make this set of bug reports go away.

Re: [Yum-devel] [PATCH] createrepo: typo in pragma

2009-08-07 Thread Seth Vidal
On Thu, 6 Aug 2009, James Antill wrote: On Thu, 2009-08-06 at 14:01 -0400, Mike Bonnet wrote: Fix a one-character typo in a PRAGMA. This doesn't actually affect operation (the typoed version still had the desired effect). Obvious ACK :) Agreed - perhaps someone was being a bit t00 l3

Re: [Yum-devel] [PATCH 1/2] Add expire data to repolist -v

2009-08-11 Thread Seth Vidal
On Tue, 11 Aug 2009, James Antill wrote: This should give enough data to diagnose if there is a problem updating the repo metadata ... as we know have: 1. Latest version from metalink. 2. Version we have. 3. Last time we checked (and how often / how long until we check again) Can't wait fo

Re: [Yum-devel] [PATCH 2/2] Cleanup whitespace for repolist -v

2009-08-11 Thread Seth Vidal
On Tue, 11 Aug 2009, James Antill wrote: --- yumcommands.py | 24 1 files changed, 12 insertions(+), 12 deletions(-) sure, commit it. -sv ___ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org

[Yum-devel] [PATCH 1/2] make sure obsoletes are looked up for localinstall/updated pkgs this handles the cases where the localpkg is a proper update AND an obsolete for a different installed pkg.

2009-08-11 Thread Seth Vidal
--- yum/__init__.py | 26 -- 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/yum/__init__.py b/yum/__init__.py index 9930c08..2585901 100644 --- a/yum/__init__.py +++ b/yum/__init__.py @@ -2586,10 +2586,18 @@ class YumBase(depsolve.Depsolve): def _f

[Yum-devel] [PATCH 2/2] fix in rangeCompare for where the item we're comparing it to has LESS than range for example: if e-1.0-0 in the range of E < 1.1

2009-08-11 Thread Seth Vidal
There are probably more typeso f insanity here - and some more tests to define and I commented about that in the code. --- rpmUtils/miscutils.py |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/rpmUtils/miscutils.py b/rpmUtils/miscutils.py index f494fc3..d76f3a8 100

Re: [Yum-devel] [PATCH 1/2] make sure obsoletes are looked up for localinstall/updated pkgs this handles the cases where the localpkg is a proper update AND an obsolete for a different installed pkg.

2009-08-12 Thread Seth Vidal
On Tue, 11 Aug 2009, James Antill wrote: -if po.pkgtup == obstup: -installed_pkg = self.rpmdb.searchPkgTuple(inst_tup)[0] -yield installed_pkg +if not isinstance(po, YumLocalPackage): +for (obstup, inst_tup) in self.up.getObsole

Re: [Yum-devel] [PATCH 2/2] fix in rangeCompare for where the item we're comparing it to has LESS than range for example: if e-1.0-0 in the range of E < 1.1

2009-08-12 Thread Seth Vidal
On Tue, 11 Aug 2009, James Antill wrote: On Tue, 2009-08-11 at 16:59 -0400, Seth Vidal wrote: There are probably more typeso f insanity here - and some more tests to define and I commented about that in the code. --- rpmUtils/miscutils.py |8 +++- 1 files changed, 7 insertions

Re: [Yum-devel] [PATCH 2/2] fix in rangeCompare for where the item we're comparing it to has LESS than range for example: if e-1.0-0 in the range of E < 1.1

2009-08-12 Thread Seth Vidal
On Tue, 11 Aug 2009, James Antill wrote: On Tue, 2009-08-11 at 16:59 -0400, Seth Vidal wrote: I'm 99% sure this should mirror the <= cases for GE/GT/etc. so where that is: if reqf in ['GT', 'GE', 'EQ', 4, 12, 8]: if f in ['

Re: [Yum-devel] [PATCH 1/2] make sure obsoletes are looked up for localinstall/updated pkgs this handles the cases where the localpkg is a proper update AND an obsolete for a different installed pkg.

2009-08-12 Thread Seth Vidal
On Wed, 12 Aug 2009, Seth Vidal wrote: On Tue, 11 Aug 2009, James Antill wrote: I agree this "works", however the problem is that we rely on the obsoletes data which is built up before we do anything based on looking at just what is in the repos. So if we have local pkgs:

Re: [Yum-devel] [PATCH 1/2] make sure obsoletes are looked up for localinstall/updated pkgs this handles the cases where the localpkg is a proper update AND an obsolete for a different installed pkg.

2009-08-12 Thread Seth Vidal
On Wed, 12 Aug 2009, Seth Vidal wrote: unless we have a case where this is unhappy. Commented and I also tested the above with rpm and obsoleting (but not conflicting) packages. both pkgs get installed with rpm -Uvh - the obsoleting one alone isn't installed. I found that curious.

  1   2   3   4   5   6   7   8   9   10   >