Re: [Yum-devel] RFC: yum-builddep patch to use specfiles instead of srpm buildrequires for depresolution

2013-05-06 Thread seth vidal
On Mon, 06 May 2013 00:31:08 -0400 James Antill wrote: > On Fri, 2013-05-03 at 17:46 +0200, Phil Knirsch wrote: > > Hi folks. > > > > I've "hacked" together a small patch the last few days to basically > > convert yum-builddep to always use specfiles for build dep > > resolution. > > > > It do

Re: [Yum-devel] [PATCH] Add option "curl_options". Helps BZ 849177

2013-04-29 Thread seth vidal
On Mon, 29 Apr 2013 11:54:54 -0400 (EDT) Zdenek Pavlas wrote: > > NAK. > > This is a really bad idea, as it basically means we have to > > continue to use curl forever or break our configuration ... and any > > Yes, but I don't believe Yum/urlgrabber will use anything but curl > in at least 5

Re: [Yum-devel] [dnf] new build: dnf-0.3.2-1

2013-04-08 Thread seth vidal
On Mon, 08 Apr 2013 20:33:23 +0200 Aleš Kozumplík wrote: > Hello, > > > Handling of per-repo package exclusions was fixed and clarified. DNF > respects excludes for all operations, not just for update and install > as Yum does[2], I find this more intuitive. > Hi Aleš, I'm a bit confused ab

Re: [Yum-devel] YUM installation

2013-03-19 Thread seth vidal
On Tue, 19 Mar 2013 20:44:57 +0200 Yazan Jaber wrote: > Gent's Any one could help me with steps to install,configure yum on > Redhat 3 Regards There is not a supported or maintained version of yum that will work on Red Hat Enterprise Linux 3. Also RHEL3

Re: [Yum-devel] [PATCH] Fix for --enablerepo=broken problem, exit(1) on failures and give reason.

2013-01-31 Thread Seth Vidal
On Thu, 31 Jan 2013, James Antill wrote: Also make queryError() an exit 1 condition. ACK - both of these look right. Though I suspect I am going to have to punt and use the yum-api directly for the stuff I was/am using repoquery for :-/ thanks --- repoquery.py | 11 +++

Re: [Yum-devel] [PATCH] Avoid converting to unicode and back in dump_xml_*. BZ 716235.

2012-11-29 Thread Seth Vidal
On Thu, 29 Nov 2012, Zdenek Pavlas wrote: -return zip(misc.to_unicode(self.hdr['changelogtime'], errors='replace'), - misc.to_unicode(self.hdr['changelogname'], errors='replace'), - misc.to_unicode(self.hdr['changelogtext'], errors='r

[Yum-devel] [PATCH] really simple typo patch - bugzilla #848811

2012-08-16 Thread Seth Vidal
--- yum/yumRepo.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/yum/yumRepo.py b/yum/yumRepo.py index 35182d3..f831f23 100644 --- a/yum/yumRepo.py +++ b/yum/yumRepo.py @@ -943,7 +943,7 @@ Insufficient space in download directory %s if not package.verifyLocal

Re: [Yum-devel] [yum-commits] reposync.py yumdownloader.py

2012-08-08 Thread Seth Vidal
On Wed, 8 Aug 2012, zpav...@osuosl.org wrote: reposync.py | 91 ++- yumdownloader.py | 66 +-- 2 files changed, 53 insertions(+), 104 deletions(-) How well have you tested these changes to repos

Re: [Yum-devel] [PATCH RFC] Add new metadata type to comps

2012-08-06 Thread Seth Vidal
On Mon, 6 Aug 2012, Bill Nottingham wrote: James Antill (ja...@fedoraproject.org) said: anaconda seems greatly in favor of (from a kickstart perspective) of treating it as a new item separate from groups, with a different delimiting character. The more I think of it the less sure I am, as

Re: [Yum-devel] Relicensing some pieces of yum-metadata-parser code

2012-07-18 Thread Seth Vidal
On Wed, 18 Jul 2012, Tomas Mlcoch wrote: db.c authors via git-blame on db.c: - James Antill - James Bowes - Paul Nasrat - Seth Vidal - Tambet Ingo Hi I prefer avoid this option (GPLv2). createrepo_c is planned as a library. Current API is still evolving (and is still a little messy) so

Re: [Yum-devel] Relicensing some pieces of yum-metadata-parser code

2012-07-18 Thread Seth Vidal
t-blame on db.c: - James Antill - James Bowes - Paul Nasrat - Seth Vidal - Tambet Ingo So my question: Would you mind if I relicense the mentioned pieces of your code from GPLv2 to LGPLv2? PS: Should you require any additional information, do not hesitate to contact me. Best regards Tomas Tom

Re: [Yum-devel] Yum source files with missing license

2012-07-10 Thread Seth Vidal
On Tue, 10 Jul 2012, James Antill wrote: On Tue, 2012-07-10 at 16:05 +0200, Ales Kozumplik wrote: Hello, I am facing licensing problems trying to submit DNF (a fork of yum) as a package to Fedora. The whole situation was brought to light by Terje Røsten[sic][1] , specifically the problem i

Re: [Yum-devel] [Idea] Yum "groups"

2012-06-29 Thread Seth Vidal
On Tue, 26 Jun 2012, roeglobal@insicuri wrote: Hello. So recently I had to install "Deluge" on GNOME (CentOS 6.2 CentosPlus O.S.) from sources and have had a nightmare trying to resolve all the dependencies, at last I quit trying to install it as I could not figure out how to start the daem

Re: [Yum-devel] [PATCH] quote uids to keep cachedir ascii-clean. BZ 832195

2012-06-26 Thread Seth Vidal
On Tue, 26 Jun 2012, Zdenek Pavlas wrote: It solves the problem, but the commit messages says "uids" when it's actually "username" ... and I _think_ sysadmins. would much prefer it if we didn't quote here. Sorry, i meant 'uid' as in rfc4519 (login name), not the numeric one, neither the (f

Re: [Yum-devel] [PATCH] Fix yum-updatesd-dbus.conf policy syntax.

2012-02-23 Thread seth vidal
On Thu, 23 Feb 2012 12:32:18 +0100 y...@suse.de wrote: > From: Sascha Peilicke > Sascha, You subscribed to this list from a different address than you are posting from. I approved the messages but please subscribe and post from the same address. Thanks -sv _

Re: [Yum-devel] did any one meet this error?

2012-02-16 Thread seth vidal
On Thu, 16 Feb 2012 17:06:11 +0800 继刚 wrote: > I am trying to run a script that will run command "createrepo" when > new rpms is pushed into the reposity, the command to run is: > cd /home/yum/xxx/4/i386 /usr/bin/createrepo -d -p --update -o . . > when i type this command manually,it runs ok, > b

Re: [Yum-devel] [PATCH] Try to workaround the case where non-root users can't read certs. BZ 690904.

2012-02-14 Thread seth vidal
On Tue, 14 Feb 2012 16:05:56 -0500 James Antill wrote: > --- > docs/yum.conf.5 | 13 + > yum/__init__.py | 12 > yum/config.py |2 ++ > 3 files changed, 27 insertions(+), 0 deletions(-) > > diff --git a/docs/yum.conf.5 b/docs/yum.conf.5 > index 59bd779..babf66

[Yum-devel] [PATCH] make --setopt take globs for the repo setopts

2012-02-02 Thread Seth Vidal
This enables things like: yum --setopt='*.skip_if_unavailable=1' update or yum-config-manager --setopt='*.skip_if_unavailable=1' --save helps bug 755077 --- yum/__init__.py | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/yum/__init__.py b/yum/__init__.py index 26

Re: [Yum-devel] [PATCH] Dynamic mirror selection

2012-01-27 Thread seth vidal
On Fri, 27 Jan 2012 11:20:10 -0500 James Antill wrote: > On Wed, 2012-01-25 at 11:23 +0100, Zdeněk Pavlas wrote: > > - Dropped the MG's 'max_connections' option, added a global one. > > - Single download queue, mirror selected as late as possible. > > - Merged request dispatch & flushing loops. >

Re: [Yum-devel] [PATCH] Try comparing provides versions, if they all match. BZ 782345.

2012-01-20 Thread seth vidal
On Fri, 20 Jan 2012 09:14:06 -0500 (EST) Zdenek Pavlas wrote: > > > I meant that searchProvides() knows the provide name used to find > > > the packages, and if all packages found have a nice version on > > > that provide, it could a) prune the list b) sort the list c) > > > assign some initial s

Re: [Yum-devel] repoquery question

2012-01-12 Thread seth vidal
On Thu, 12 Jan 2012 15:29:54 + (UTC) Dan White wrote: > Is there a way to list installed RPM's and also indicate the repo > they came from ? > > I am admining some Red Hat boxes and had some doomsayers start > grouching about adding some EPEL packages to the mix, so I have to > identify what

Re: [Yum-devel] [PATCH] fastestmirror: Do not include DNS lookup in host timing.

2011-12-19 Thread seth vidal
On Mon, 19 Dec 2011 13:51:02 +0100 Zdeněk Pavlas wrote: > The fastestmirror plugin tries to find the fastest mirror > by timing a null TCP connect(), so usually 2x RTT. > > However, the value measured includes host DNS lookup overhead, > which is completely unrelated. So, perform it outside > t

Re: [Yum-devel] [PATCH] 'yum clean all/metadata' fix

2011-12-07 Thread seth vidal
On Wed, 7 Dec 2011 09:38:45 +0100 Zdeněk Pavlas wrote: > Some sqlite metadata are .gz, too. > --- > yum/__init__.py |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index 33c275e..7dd0536 100644 > --- a/yum/__init__.py > +++ b/y

Re: [Yum-devel] [PATCH] Give name of pkg. and GPG urls when failed to install key. CKS/YumCryptoFail.

2011-12-06 Thread seth vidal
On Tue, 6 Dec 2011 15:48:12 -0500 James Antill wrote: > --- > yum/__init__.py | 44 ++-- > 1 files changed, 34 insertions(+), 10 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index 5c7e511..3872566 100644 > --- a/yum/__init__.py > +

Re: [Yum-devel] [PATCH] Fix _conv_pkg_state when calling with history as checksum. BZ 757736.

2011-12-01 Thread seth vidal
On Thu, 1 Dec 2011 13:10:12 -0500 James Antill wrote: > --- > yum/history.py |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/yum/history.py b/yum/history.py > index d27fa44..0a29059 100644 > --- a/yum/history.py > +++ b/yum/history.py > @@ -426,7 +426,7 @@ class

Re: [Yum-devel] External downloader

2011-11-21 Thread seth vidal
On Mon, 21 Nov 2011 04:57:11 -0500 (EST) Zdenek Pavlas wrote: > > Doesn't it matter a lot to fix this for 1.0? If so then the better > > solution would be to work out why we are doing a lot of small reads > > +writes and try to merge them at that layer. > > I believe urlgrabber users never see i

Re: [Yum-devel] yum buildTrascation

2011-11-21 Thread seth vidal
On Mon, 21 Nov 2011 17:55:47 +0530 Janardhan Molumuri wrote: > I am trying to run depresolve (dependency resolution check) on a newly > created yum repo using yum.yumBase.buildTransaction() but the result > is a empty transcation. Any ideas on this? I don't find good > documentation on these meth

Re: [Yum-devel] yum buildTrascation

2011-11-21 Thread seth vidal
On Mon, 21 Nov 2011 17:55:47 +0530 Janardhan Molumuri wrote: > I am trying to run depresolve (dependency resolution check) on a newly > created yum repo using yum.yumBase.buildTransaction() but the result > is a empty transcation. Any ideas on this? I don't find good > documentation on these meth

Re: [Yum-devel] [PATCH 1/2] writeout_final_defers() changes

2011-11-15 Thread seth vidal
On Tue, 15 Nov 2011 13:58:53 +0100 Zdeněk Pavlas wrote: > - fix memory leak > - group output by inode > --- > src/copyout.c | 37 + > 1 files changed, 21 insertions(+), 16 deletions(-) > > diff --git a/src/copyout.c b/src/copyout.c > index ab6a243..d8c19a0

Re: [Yum-devel] separate 'Modified' packages from repodiff into 'Upgraded' and 'Downgraded'

2011-11-03 Thread seth vidal
On Thu, 03 Nov 2011 14:26:38 -0400 Dennis Gregorovic wrote: > Hi, > > Currently, repodiff reports which packages have been Added, Removed, > and Modified. It often would be useful to know which of the Modified > packages would be upgrades and which would be downgrades. I'm think > simple evr c

Re: [Yum-devel] [PATCH] Fix a corner case in exception2msg(). BZ 749239.

2011-11-02 Thread seth vidal
On Wed, 2011-11-02 at 09:03 +0100, tim.laurid...@gmail.com wrote: > > > Maybe it is time to add python-kitchen as a requirement to yum and > start using the kitchen converters, they work great and it has must > better naming > to_unicode, to_bytes, exception_to_unicode and exception_to_

[Yum-devel] [PATCH] add pyliblzma as requirement to spec file

2011-10-26 Thread Seth Vidal
1.1.0 Requires: pygpgme +Requires: pyliblzma Conflicts: rpm >= 5-0 # Zif is a re-implementation of yum in C, however: @@ -297,6 +298,9 @@ exit 0 %endif %changelog +* Wed Oct 26 2011 Seth Vidal +- add requirement for pyliblzma for xz compression support + * Thu Jul 28 2011 Matth

Re: [Yum-devel] [PATCH] getGroups() API change. BZ 749108.

2011-10-26 Thread seth vidal
On Wed, 2011-10-26 at 14:36 +0200, Zdeněk Pavlas wrote: > repo.getGroups() returns None on failure, > instead of raising an exception. > --- > langpacks.py |5 ++--- > 1 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/langpacks.py b/langpacks.py > index f39257b..7e5c82d 100644

Re: [Yum-devel] [PATCH] Make TextMultiFileMeter not suck UI, make it mostly UI compat. with TextMeter.

2011-10-21 Thread seth vidal
On Fri, 2011-10-21 at 15:34 -0400, James Antill wrote: > - > -out = '%-79.79s' % (format % (fn, fsize, fet, frate)) > +df = self.finished_files > +tf = self.numfiles or 1 > + > +if True: > +total_time = format_time(et) > +

Re: [Yum-devel] [PATCH] Add reset_nice configuration.

2011-10-17 Thread seth vidal
On Mon, 2011-10-17 at 15:14 -0400, James Antill wrote: > --- > docs/yum.conf.5 |4 > yum/__init__.py | 13 + > yum/config.py |1 + > 3 files changed, 18 insertions(+), 0 deletions(-) > > diff --git a/docs/yum.conf.5 b/docs/yum.conf.5 > index 607e9fc..d6fe824 100644 >

Re: [Yum-devel] [PATCH 3/3] Ignore time skew by using sqlite IDs instead to order transactions. BZ 745635

2011-10-13 Thread seth vidal
On Thu, 2011-10-13 at 10:39 -0400, James Antill wrote: > --- > yum/history.py |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/yum/history.py b/yum/history.py > index 8e62f50..0dc28c3 100644 > --- a/yum/history.py > +++ b/yum/history.py > @@ -1204,7 +1204,7 @@ class

Re: [Yum-devel] [PATCH 2/3] Output the GPG fingerprint when showing the GPG key, BZ 745715.

2011-10-13 Thread seth vidal
On Thu, 2011-10-13 at 10:39 -0400, James Antill wrote: > --- > yum/__init__.py | 14 +- > 1 files changed, 9 insertions(+), 5 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index 1807d61..53043de 100644 > --- a/yum/__init__.py > +++ b/yum/__init__.py > @@ -5093,17

Re: [Yum-devel] [PATCH 1/3] Add helper function to access the fingerprint in the GPG key info data.

2011-10-13 Thread seth vidal
On Thu, 2011-10-13 at 10:39 -0400, James Antill wrote: > --- > yum/misc.py | 12 > 1 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/yum/misc.py b/yum/misc.py > index 04490a6..5321003 100644 > --- a/yum/misc.py > +++ b/yum/misc.py > @@ -8,6 +8,7 @@ import os > imp

Re: [Yum-devel] Making yum-cron send mail only if something changed

2011-09-29 Thread seth vidal
On Thu, 2011-09-29 at 20:46 +0300, Ville Skyttä wrote: > On 09/29/2011 07:41 AM, seth vidal wrote: > > > http://skvidal.fedorapeople.org/misc/nag-once.py > > Looks like something that would work fine for me, thanks. > > Attached is a patch with some improvements: >

Re: [Yum-devel] [PATCH] Solve some of the obsoletes are conflicts mess. testObsoletesOffPostAvail2+

2011-09-29 Thread seth vidal
On Thu, 2011-09-29 at 09:16 -0400, James Antill wrote: > On Thu, 2011-09-29 at 00:17 -0400, seth vidal wrote: > > On Wed, 2011-09-28 at 16:56 -0400, James Antill wrote: > > > --- > > > yum/depsolve.py | 13 + > > > 1 files changed, 13 insertions(

Re: [Yum-devel] Making yum-cron send mail only if something changed

2011-09-28 Thread seth vidal
On Wed, 2011-09-28 at 17:38 -0400, seth vidal wrote: > On Wed, 2011-09-28 at 22:38 +0300, Ville Skyttä wrote: > > On 09/28/2011 10:10 PM, seth vidal wrote: > > > > > myjob 2>&1 | nag-once myjob 1w > > > > > > it takes the output, compares it t

Re: [Yum-devel] [PATCH] Solve some of the obsoletes are conflicts mess. testObsoletesOffPostAvail2+

2011-09-28 Thread seth vidal
On Wed, 2011-09-28 at 16:56 -0400, James Antill wrote: > --- > yum/depsolve.py | 13 + > 1 files changed, 13 insertions(+), 0 deletions(-) > > diff --git a/yum/depsolve.py b/yum/depsolve.py > index 8fe4952..699a23c 100644 > --- a/yum/depsolve.py > +++ b/yum/depsolve.py > @@ -816,6 +

Re: [Yum-devel] [PATCH] Make resolvedep a hidden command.

2011-09-28 Thread seth vidal
On Wed, 2011-09-28 at 16:56 -0400, James Antill wrote: > --- > cli.py |6 -- > docs/yum.8 |8 +--- > yumcommands.py |6 +- > 3 files changed, 14 insertions(+), 6 deletions(-) > > diff --git a/cli.py b/cli.py > index 816a61b..bbe8e55 100755 > --- a/cli.py > +++

Re: [Yum-devel] Making yum-cron send mail only if something changed

2011-09-28 Thread seth vidal
On Wed, 2011-09-28 at 22:38 +0300, Ville Skyttä wrote: > On 09/28/2011 10:10 PM, seth vidal wrote: > > > myjob 2>&1 | nag-once myjob 1w > > > > it takes the output, compares it to the last run of the 'myjob' id and > > if the content is the same and

Re: [Yum-devel] Making yum-cron send mail only if something changed

2011-09-28 Thread seth vidal
On Wed, 2011-09-28 at 22:00 +0300, Ville Skyttä wrote: > On 09/28/2011 09:29 PM, Ville Skyttä wrote: > > Hello, > > > > I use yum-cron always in CHECK_ONLY (or DOWNLOAD_ONLY) modes, and would > > prefer if it would not send mail if nothing has changed since the last > > run. [...] > > Actually so

Re: [Yum-devel] [PATCH 1/2] Add returnInstalledPackageByDep() to pair with returnPackageByDep().

2011-09-28 Thread seth vidal
On Wed, 2011-09-28 at 12:29 -0400, James Antill wrote: > On Wed, 2011-09-28 at 12:17 -0400, seth vidal wrote: > > On Wed, 2011-09-28 at 12:05 -0400, James Antill wrote: > > > --- > > > yum/__init__.py | 28 > > > 1 files ch

Re: [Yum-devel] [PATCH 1/2] Add returnInstalledPackageByDep() to pair with returnPackageByDep().

2011-09-28 Thread seth vidal
On Wed, 2011-09-28 at 12:05 -0400, James Antill wrote: > --- > yum/__init__.py | 28 > 1 files changed, 28 insertions(+), 0 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index 5fb7c00..cc968fd 100644 > --- a/yum/__init__.py > +++ b/yum/__init__.p

Re: [Yum-devel] Implementing delta metadata

2011-09-27 Thread seth vidal
On Mon, 2011-09-26 at 07:21 -0400, Zdenek Pavlas wrote: > Hi! > > Thanks for the interest in improving MD download! > Just a few thoughts (I don't consider myself experienced > in the codebase, esp on the createrepo part). > > - Sharding metadata is very likely not an option. > > The per-file ov

Re: [Yum-devel] [PATCH] make sure we handle signatures which are not directly following the pub key but are elsewhere in the key info.

2011-09-14 Thread seth vidal
On Wed, 2011-09-14 at 13:40 -0400, James Antill wrote: > On Wed, 2011-09-14 at 12:16 -0400, Seth Vidal wrote: > > --- > > yum/pgpmsg.py | 16 +--- > > 1 files changed, 13 insertions(+), 3 deletions(-) > > ACK. Did you send this to the upstream guy? &

[Yum-devel] [PATCH] make sure we handle signatures which are not directly following the pub key but are elsewhere in the key info.

2011-09-14 Thread Seth Vidal
--- yum/pgpmsg.py | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/yum/pgpmsg.py b/yum/pgpmsg.py index ee825c6..dae60c9 100644 --- a/yum/pgpmsg.py +++ b/yum/pgpmsg.py @@ -934,7 +934,8 @@ class pgp_certificate(object): """load(pkts) Initialize the p

Re: [Yum-devel] [PATCH] Use state-aware filename rpmdb index if rpm supports it

2011-08-31 Thread seth vidal
On Wed, 2011-08-31 at 14:20 -0400, James Antill wrote: > On Wed, 2011-08-31 at 13:52 -0400, James Antill wrote: > > On Wed, 2011-08-31 at 19:57 +0300, Panu Matilainen wrote: > > > On 08/31/2011 05:59 PM, James Antill wrote: > > > > I guess we could add a new API ... but using that API for file >

Re: [Yum-devel] [PATCH] Use state-aware filename rpmdb index if rpm supports it

2011-08-31 Thread seth vidal
On Wed, 2011-08-31 at 11:44 +0300, Panu Matilainen wrote: > This fixes some cases where yum depsolver and rpm >= 4.9.0 > disagree on dependencies on removal (including but not limited > to the example in BZ 729973), causing "ERROR with transaction check > vs depsolve" errors. The state-aware file i

Re: [Yum-devel] [PATCH] Use yum's dependency checking code for package-cleanup --problems

2011-08-29 Thread seth vidal
On Mon, 2011-08-29 at 09:32 -0400, James Antill wrote: > On Mon, 2011-08-29 at 12:43 +0300, Panu Matilainen wrote: > > The dep checker in yum does a more thorough job already, and this > > lets us deal with any further issues (eg BZ 729973) centrally in > > one spot. This does change the output a b

Re: [Yum-devel] [PATCH 1/3] Clean up class MultiFileHelper

2011-08-25 Thread seth vidal
On Thu, 2011-08-25 at 11:55 +0200, Zdeněk Pavlas wrote: > These lines look irrelevant and confusing. > > --- > urlgrabber/progress.py |3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > > diff --git a/urlgrabber/progress.py b/urlgrabber/progress.py > index 45eb248..e8408e5 100644 >

Re: [Yum-devel] [PATCH 1/2] Add upgrade_requirements_on_install config. Based on idea by Michael Schwendt.

2011-08-19 Thread seth vidal
On Fri, 2011-08-19 at 16:41 -0400, James Antill wrote: > The idea is that sometimes you want to say "make sure the entire > dep. tree for package XYZ is at the latest version". This affects > install/upgrade/update/upgrade-to/reinstall. yum command only. we talked about this before - but one bit w

Re: [Yum-devel] Add rpmdb/yumdb data to the history DB.

2011-08-04 Thread seth vidal
On Wed, 2011-08-03 at 14:23 -0400, James Antill wrote: > Seems to work, but API usage is pretty limited so I might just have tested > the bits that are used :). > > We now store these rpmdb/yumdb entries in the history DB, mainly when the > package is installed (in verifyTransaction()): > > rpm

Re: [Yum-devel] [PATCH] Accept old outputs of "-q history addon-info saved_tx" in load_ts. BZ 728253

2011-08-04 Thread seth vidal
On Thu, 2011-08-04 at 10:06 -0400, James Antill wrote: > --- > yum/__init__.py | 10 ++ > 1 files changed, 10 insertions(+), 0 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index fe312ce..530bfd4 100644 > --- a/yum/__init__.py > +++ b/yum/__init__.py > @@ -5318,6 +53

Re: [Yum-devel] [PATCH] Make "yum -q history addon-info last saved_tx" valid input for load-ts.

2011-08-04 Thread seth vidal
On Thu, 2011-08-04 at 10:06 -0400, James Antill wrote: > --- > output.py |8 > 1 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/output.py b/output.py > index da34382..00e0e6f 100755 > --- a/output.py > +++ b/output.py > @@ -2349,12 +2349,12 @@ to exit. > >

Re: [Yum-devel] [PATCH] Add ui_evr, like ui_nevra ... for "yum list" like output.

2011-08-04 Thread seth vidal
On Thu, 2011-08-04 at 15:11 -0400, James Antill wrote: > --- > yum/packages.py |8 > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/yum/packages.py b/yum/packages.py > index 79c15db..f72c068 100644 > --- a/yum/packages.py > +++ b/yum/packages.py > @@ -271,6 +271,14

Re: [Yum-devel] yum shell and exit codes and plugins

2011-07-29 Thread seth vidal
On Fri, 2011-07-29 at 11:17 -0500, Jason L Tibbitts III wrote: > > "MM" == Matthew Miller writes: > > MM> Can you send me what you're patching it to be? > > I haven't patched it into F15 yet (still preparing the rollout) but this > is what I used in the F13 version: > > --- 0yum.cron.quiet

Re: [Yum-devel] yum shell and exit codes and plugins [was Re: Reorganize yum-cron...]

2011-07-29 Thread seth vidal
On Fri, 2011-07-29 at 10:31 -0400, Matthew Miller wrote: > > Also, it'd be nice to go straight to having: > > yum-cron update > > yum-cron cleanup > > yum-cron check-updates > > yum-cron download-updates > > ...and then the only things looking in sysconfig/yum-cron would be > > the .cron.sh files.

Re: [Yum-devel] [PATCH] Reorganize yum-cron to allow more flexible scheduling.

2011-07-28 Thread seth vidal
On Thu, 2011-07-28 at 15:30 -0400, Matthew Miller wrote: > On Thu, Jul 28, 2011 at 03:00:44PM -0400, Matthew Miller wrote: > > So what's all this then? :) > > Hmmm; did the patch not come through? First time using git-email > I was hoping it was one of those fancy 'no change' patches. ;) -

Re: [Yum-devel] yum cache handling issues (wrt repoquery)

2011-07-21 Thread seth vidal
On Wed, 2011-07-20 at 21:15 -0400, Jon Stanley wrote: > I have an issue of getting stale repo metadata from repoquery. We use > this as part of our release process, and as an ad-hoc tool to query > what's in a repo. > > When you specify --repofrompath on the command line, yum dutifully > caches th

Re: [Yum-devel] [PATCH 2/3] Tidy up the yum_save file, so it is easier to read.

2011-07-19 Thread seth vidal
On Tue, 2011-07-19 at 15:53 -0400, James Antill wrote: > --- > yum/__init__.py |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index 3f7f619..447cd8f 100644 > --- a/yum/__init__.py > +++ b/yum/__init__.py > @@ -5241,7 +5241,7 @@ c

Re: [Yum-devel] [PATCH 1/3] Use TMPDIR, if set, for save_ts. BZ 723280.

2011-07-19 Thread seth vidal
On Tue, 2011-07-19 at 15:53 -0400, James Antill wrote: > --- > yum/__init__.py |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index 12c2bdd..3f7f619 100644 > --- a/yum/__init__.py > +++ b/yum/__init__.py > @@ -5242,7 +5242,8 @@

[Yum-devel] [PATCH] sort the files output too - it takes a bit more time but it makes things easier to read :)

2011-07-15 Thread Seth Vidal
--- yum/packages.py |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yum/packages.py b/yum/packages.py index db365c5..79c15db 100644 --- a/yum/packages.py +++ b/yum/packages.py @@ -1161,11 +1161,11 @@ class YumAvailablePackage(PackageObject, RpmBase): dirs

[Yum-devel] [PATCH] - make the pre check look for 0 or "0" b/c 0 comes from the pkgs and "0" comes from the sqlite :) - if we have nothing we've used in the requires output, then don't output anything

2011-07-15 Thread Seth Vidal
--- yum/packages.py | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/yum/packages.py b/yum/packages.py index e055edf..db365c5 100644 --- a/yum/packages.py +++ b/yum/packages.py @@ -1083,7 +1083,7 @@ class YumAvailablePackage(PackageObject, RpmBase):

Re: [Yum-devel] [PATCH 2/2] the "0" string of pre returns as valid on the if pre check. So turn it into a check for "1" so our requires don't always include pre="0" when they don't really need to.

2011-07-15 Thread seth vidal
On Fri, 2011-07-15 at 11:37 -0400, James Antill wrote: > On Fri, 2011-07-15 at 11:22 -0400, Seth Vidal wrote: > > --- > > yum/packages.py |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/yum/packages.py b/yum/packages.py

Re: [Yum-devel] [PATCH] when you .lower() a string you want to compare it to lowercase values, not uppercase ones.

2011-07-15 Thread seth vidal
On Fri, 2011-07-15 at 11:33 -0400, James Antill wrote: > On Fri, 2011-07-15 at 11:18 -0400, Seth Vidal wrote: > > --- > > yum/sqlitesack.py |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > Wow ... that's pretty special, how has that lasted

[Yum-devel] [PATCH 2/2] the "0" string of pre returns as valid on the if pre check. So turn it into a check for "1" so our requires don't always include pre="0" when they don't really need to.

2011-07-15 Thread Seth Vidal
--- yum/packages.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/yum/packages.py b/yum/packages.py index 5ef9951..4b1265c 100644 --- a/yum/packages.py +++ b/yum/packages.py @@ -1217,7 +1217,7 @@ class YumAvailablePackage(PackageObject, RpmBase): pr

[Yum-devel] [PATCH 1/2] when you .lower() a string you want to compare it to lowercase values, not uppercase ones.

2011-07-15 Thread Seth Vidal
--- yum/sqlitesack.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py index 8a6f6f3..19193ad 100644 --- a/yum/sqlitesack.py +++ b/yum/sqlitesack.py @@ -406,7 +406,7 @@ class YumAvailablePackageSqlite(YumAvailablePackage, PackageObjec

[Yum-devel] [PATCH] when you .lower() a string you want to compare it to lowercase values, not uppercase ones.

2011-07-15 Thread Seth Vidal
--- yum/sqlitesack.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py index 8a6f6f3..19193ad 100644 --- a/yum/sqlitesack.py +++ b/yum/sqlitesack.py @@ -406,7 +406,7 @@ class YumAvailablePackageSqlite(YumAvailablePackage, PackageObjec

Re: [Yum-devel] [PATCH 4/4] Add --assumeno which does the opposite of --assumeyes.

2011-07-14 Thread seth vidal
On Thu, 2011-07-14 at 14:19 -0400, James Antill wrote: > On Thu, 2011-07-14 at 13:18 -0400, seth vidal wrote: > > > > @@ -1535,7 +1535,10 @@ class YumOptionParser(OptionParser): > > > > > > # Handle remaining options >

Re: [Yum-devel] [PATCH 4/4] Add --assumeno which does the opposite of --assumeyes.

2011-07-14 Thread seth vidal
On Thu, 2011-07-14 at 11:45 -0400, James Antill wrote: > --- > cli.py | 13 ++--- > docs/yum.conf.5 |8 > yum/__init__.py |5 + > yum/config.py |1 + > 4 files changed, 24 insertions(+), 3 deletions(-) > > diff --git a/cli.py b/cli.py > index c69ec3b.

Re: [Yum-devel] [PATCH 3/4] Allow remove to use alwaysprompt/etc. logic.

2011-07-14 Thread seth vidal
On Thu, 2011-07-14 at 11:45 -0400, James Antill wrote: > --- > cli.py |1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/cli.py b/cli.py > index 6056d38..c69ec3b 100644 > --- a/cli.py > +++ b/cli.py > @@ -1400,7 +1400,6 @@ class YumBaseCli(yum.YumBase, output.YumOutput)

Re: [Yum-devel] [PATCH 2/4] Give a message about weird rpmdb release provides problems.

2011-07-14 Thread seth vidal
On Thu, 2011-07-14 at 11:45 -0400, James Antill wrote: > --- > yum/config.py |5 - > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/yum/config.py b/yum/config.py > index cb7ed57..dca13fa 100644 > --- a/yum/config.py > +++ b/yum/config.py > @@ -1028,7 +1028,10 @@ def _ge

Re: [Yum-devel] [PATCH 1/4] When we call _deal_with_bad_rpmdbcache(), due to a package ... show the pkg.

2011-07-14 Thread seth vidal
On Thu, 2011-07-14 at 11:45 -0400, James Antill wrote: > --- > yum/rpmsack.py |6 -- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/yum/rpmsack.py b/yum/rpmsack.py > index 9717912..ef6fbd5 100644 > --- a/yum/rpmsack.py > +++ b/yum/rpmsack.py > @@ -375,7 +375,8 @@ clas

Re: [Yum-devel] [UG] Why isn't urlgrabber on PyPI?

2011-07-14 Thread seth vidal
On Wed, 2011-07-13 at 03:23 +0200, Victor Andrée wrote: > Hi! > > I'm working on a project which depends on urlgrabber. It not being > available in the standard package index makes life a ... bit harder, > and I'm curious if there's any particular reason why. It's quite > widely used and appreciat

Re: [Yum-devel] [PATCH] Ignore EACCES on yumdb stat calls, users can't access yumdb :(. BZ 719467

2011-07-07 Thread seth vidal
On Thu, 2011-07-07 at 10:49 -0400, James Antill wrote: > --- > yum/misc.py| 10 ++ > yum/rpmsack.py |2 +- > 2 files changed, 7 insertions(+), 5 deletions(-) > > diff --git a/yum/misc.py b/yum/misc.py > index 2f6ddfe..37c572b 100644 > --- a/yum/misc.py > +++ b/yum/misc.py > @@ -

Re: [Yum-devel] [PATCH 2/2] Add new urlgrabber option 'csum_type'.

2011-07-06 Thread seth vidal
On Wed, 2011-07-06 at 11:27 -0400, James Antill wrote: > The other problem is that when you start the parallel part of the > downloading changes, the IO will be happening in another process ... but > I doubt that we can do the checksum there (due to desired security > boundries). > If we _can_ pu

Re: [Yum-devel] [PATCH] Fix confusion from passing pkgtup as an nevra_dict. BZ 717973.

2011-06-30 Thread seth vidal
On Thu, 2011-06-30 at 12:06 -0400, James Antill wrote: > --- > yum/__init__.py | 14 -- > 1 files changed, 8 insertions(+), 6 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index 99039e0..e9bc1f9 100644 > --- a/yum/__init__.py > +++ b/yum/__init__.py > @@ -1242,13

Re: [Yum-devel] [PATCH] Add the ppc => ppc64 change, but keep the old default upstream atm. BZ 713791

2011-06-28 Thread seth vidal
On Tue, 2011-06-28 at 17:00 -0400, James Antill wrote: > --- > rpmUtils/arch.py |8 ++-- > 1 files changed, 6 insertions(+), 2 deletions(-) > > diff --git a/rpmUtils/arch.py b/rpmUtils/arch.py > index 6082005..ad7bbb1 100644 > --- a/rpmUtils/arch.py > +++ b/rpmUtils/arch.py > @@ -3,6 +3,8

Re: [Yum-devel] [PATCH] Disable the rpmtrans chroot workaround. Use exclusive locking in history.

2011-06-28 Thread seth vidal
On Tue, 2011-06-28 at 15:17 -0400, James Antill wrote: > The only downside here appears to be that we get .sqlite-journal files > in /var/lib/yum/history ... which is probably fine. > --- > yum/history.py |6 +- > yum/rpmtrans.py |5 +++-- > 2 files changed, 8 insertions(+), 3 deletio

Re: [Yum-devel] [PATCH] Don't call repo.doSetup() if we've already setup the repos. BZ 717163.

2011-06-28 Thread seth vidal
On Tue, 2011-06-28 at 16:00 -0400, James Antill wrote: > Test: yum in @core == hassetup. >yum rm @core == hasn't setup. > --- > yum/__init__.py |4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index 92f25d4..2dce3bf 1

Re: [Yum-devel] (no subject)

2011-06-27 Thread seth vidal
On Mon, 2011-06-27 at 18:01 +0200, Zdeněk Pavlas wrote: > - Download 1 file from many mirrors (use byte ranges)? I noticed this under the TODOs and I wanted to comment on it. I think this is a NON-goal. It's error-prone and I think if someone wants to implement something like that then they can

Re: [Yum-devel] [PATCH 8/9] cache returnIdSum()

2011-06-27 Thread seth vidal
On Mon, 2011-06-27 at 18:01 +0200, Zdeněk Pavlas wrote: > This is ugly. We want to verify downloaded packages ASAP, so right after > download. > But the checksum has to be read from sqlite DB, which does not play with > threading. > So we add caching, and preload it. This is ANOTHER reason why

Re: [Yum-devel] [PATCH 7/9] Call 'thread()' in multiple threads.

2011-06-27 Thread seth vidal
On Mon, 2011-06-27 at 18:01 +0200, Zdeněk Pavlas wrote: > --- > yum/__init__.py | 28 +++- > 1 files changed, 23 insertions(+), 5 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index 5d268a7..7b2483f 100644 > --- a/yum/__init__.py > +++ b/yum/__init__.

Re: [Yum-devel] [PATCH] Make _curl_cache thread-local.

2011-06-27 Thread seth vidal
On Mon, 2011-06-27 at 17:29 +0200, Zdeněk Pavlas wrote: > While libcurl is (supposed to be) thread-safe, pycurl.Curl() object cannot > be shared between multiple threads. > --- > urlgrabber/grabber.py | 14 -- > 1 files changed, 8 insertions(+), 6 deletions(-) > > diff --git a/urlgr

Re: [Yum-devel] depsolve.py

2011-06-22 Thread seth vidal
On Wed, 2011-06-22 at 05:27 -0400, Zdenek Pavlas wrote: > Hi! > > Just browsing the code.. > > class DepCheck(object): > class Requires(object): > class Conflicts(object): > > 2008-03-19 James Antill > * yum/depsolve.py, yum/sqlitesack.py: Remove DepCheck() as it's > unused. > > Sho

[Yum-devel] [PATCH] add check to make sure rest in the libc collapsing is not a single item list.

2011-06-21 Thread Seth Vidal
--- yum/packages.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/yum/packages.py b/yum/packages.py index d8043f9..5ef9951 100644 --- a/yum/packages.py +++ b/yum/packages.py @@ -1186,7 +1186,7 @@ class YumAvailablePackage(PackageObject, RpmBase): if libc_re

Re: [Yum-devel] [PATCH] Stops "Finished dependency resolution" from being printed multiple times when --skip-broken is used. BZ 626569

2011-06-13 Thread seth vidal
On Mon, 2011-06-13 at 16:16 -0400, Nick Jacek wrote: > --- > yum/__init__.py |2 +- > yum/depsolve.py |8 ++-- > 2 files changed, 7 insertions(+), 3 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index ab2bb9d..d05de2e 100644 > --- a/yum/__init__.py > +++ b/yum/__in

Re: [Yum-devel] [PATCH] Changed archlist set up to handle multilib. BZ 710579

2011-06-08 Thread seth vidal
On Wed, 2011-06-08 at 13:45 -0400, Nick Jacek wrote: > --- > repodiff.py | 13 - > 1 files changed, 12 insertions(+), 1 deletions(-) > > diff --git a/repodiff.py b/repodiff.py > index ef21c2d..e2d3b1f 100755 > --- a/repodiff.py > +++ b/repodiff.py > @@ -158,10 +158,12 @@ def parseAr

Re: [Yum-devel] [PATCH 4/4] Changed behavior of group update to only update packages already installed.

2011-06-08 Thread seth vidal
On Wed, 2011-06-08 at 15:01 -0400, Nick Jacek wrote: > --- > cli.py |4 ++-- > docs/yum.8 |8 > yum/__init__.py | 21 ++--- > 3 files changed, 20 insertions(+), 13 deletions(-) > Hi Nick, welcome and thanks for the patches. I'm not in love wit

Re: [Yum-devel] [PATCH 3/3] Create list of pkgtups we couldn't find, and output them in listTrans.

2011-06-02 Thread seth vidal
On Thu, 2011-06-02 at 13:25 -0400, James Antill wrote: > On Thu, 2011-06-02 at 13:04 -0400, seth vidal wrote: > > > What's the goal of this? > > It's for when the user is using load-ts/history undo/etc. ... so you > can easily see the packages which weren'

Re: [Yum-devel] [PATCH 3/3] Create list of pkgtups we couldn't find, and output them in listTrans.

2011-06-02 Thread seth vidal
On Thu, 2011-06-02 at 12:56 -0400, James Antill wrote: > --- > output.py |4 +++- > yum/__init__.py | 33 +++-- > yum/packages.py | 39 +++ > 3 files changed, 73 insertions(+), 3 deletions(-) > > diff --git a/output.py

Re: [Yum-devel] [PATCH 2/3] Return -1 from doTransaction() if user/GPG fails, diff. text. BZ 586690.

2011-06-02 Thread seth vidal
On Thu, 2011-06-02 at 12:56 -0400, James Antill wrote: > --- > cli.py |6 +++--- > shell.py |4 +++- > yummain.py |2 ++ > 3 files changed, 8 insertions(+), 4 deletions(-) > > diff --git a/cli.py b/cli.py > index f4bd7b1..7ef147d 100644 > --- a/cli.py > +++ b/cli.py > @@ -448,7

Re: [Yum-devel] [PATCH 1/3] Add failed to __init__ of TransData.

2011-06-02 Thread seth vidal
On Thu, 2011-06-02 at 12:56 -0400, James Antill wrote: > --- > yum/transactioninfo.py |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/yum/transactioninfo.py b/yum/transactioninfo.py > index b0c7ddd..4d89d83 100644 > --- a/yum/transactioninfo.py > +++ b/yum/transactio

Re: [Yum-devel] [PATCH] Fail reverts of repomd.xml when we aren't doing timestamp checks. BZ 665919.

2011-05-31 Thread seth vidal
On Tue, 2011-05-31 at 16:02 -0400, James Antill wrote: > --- > yum/yumRepo.py |8 > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/yum/yumRepo.py b/yum/yumRepo.py > index 6ba058c..cfc6581 100644 > --- a/yum/yumRepo.py > +++ b/yum/yumRepo.py > @@ -1067,6 +1067,14 @@

Re: [Yum-devel] [PATCH] we need to set the basearch on arm hardware to arm.

2011-05-31 Thread seth vidal
On Sat, 2011-05-28 at 09:59 -0500, Dennis Gilmore wrote: > --- > rpmUtils/arch.py |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/rpmUtils/arch.py b/rpmUtils/arch.py > index 72cba60..6082005 100644 > --- a/rpmUtils/arch.py > +++ b/rpmUtils/arch.py > @@ -359,6 +359,8

Re: [Yum-devel] [PATCH] Do ts_done create at the same time as ts_all, so it's consistent. BZ 707668.

2011-05-31 Thread seth vidal
On Thu, 2011-05-26 at 11:23 -0400, James Antill wrote: > --- > yum/rpmtrans.py | 77 +- > 1 files changed, 53 insertions(+), 24 deletions(-) > > diff --git a/yum/rpmtrans.py b/yum/rpmtrans.py > index 08bf99d..5c35486 100644 > --- a/yum/rpmtran

  1   2   3   4   5   6   7   8   9   10   >