yum.git
8 years agoFix update of obsoleted pkg. just as install does, testRLDaplMessWeirdUp1 fix
James Antill [Wed, 8 Jul 2009 21:17:13 +0000 (17:17 -0400)]
Fix update of obsoleted pkg. just as install does, testRLDaplMessWeirdUp1 fix

8 years agoAdd update varients of the weird install tests
James Antill [Wed, 8 Jul 2009 18:49:06 +0000 (14:49 -0400)]
Add update varients of the weird install tests

8 years agoFix the obsoletes chain problem, as shown by dapl in EL4
James Antill [Wed, 8 Jul 2009 17:23:06 +0000 (13:23 -0400)]
Fix the obsoletes chain problem, as shown by dapl in EL4

8 years agoAdd testcase for EL4 dapl issue
James Antill [Wed, 8 Jul 2009 14:31:18 +0000 (10:31 -0400)]
Add testcase for EL4 dapl issue

8 years agoadd output documentation for yum list to man page
Seth Vidal [Wed, 8 Jul 2009 19:00:15 +0000 (15:00 -0400)]
add output documentation for yum list to man page
for rh bug: https://bugzilla.redhat.com/show_bug.cgi?id=509669

8 years ago Real fix for BZ 508445. We were doing inf. recursion in __getattr__ due
James Antill [Tue, 7 Jul 2009 18:29:48 +0000 (14:29 -0400)]
 Real fix for BZ 508445. We were doing inf. recursion in __getattr__ due
to d03389725e3779928d721370aed9e14afb5304a6.
 Real fix is to not test, as we only get there when they don't exist.

8 years agoRevert "Fix speed regression in costExcludes (super magic)"
James Antill [Tue, 7 Jul 2009 18:27:03 +0000 (14:27 -0400)]
Revert "Fix speed regression in costExcludes (super magic)"

This reverts commit 1f45838e29ba26dac22215dd9c918fb920569fef.

 This was a workaround, the language isn't bad we are. See next commit.

8 years agoMore spelling fixes for the man pages
James Antill [Tue, 7 Jul 2009 14:54:09 +0000 (10:54 -0400)]
More spelling fixes for the man pages

8 years agoFix print ascii unicode, matchcallback, BZ 508360
James Antill [Tue, 7 Jul 2009 14:48:57 +0000 (10:48 -0400)]
Fix print ascii unicode, matchcallback, BZ 508360

8 years agoFix speed regression in costExcludes (super magic)
James Antill [Mon, 6 Jul 2009 18:11:58 +0000 (14:11 -0400)]
Fix speed regression in costExcludes (super magic)

8 years agosimple yumrepo verify method - similar to the package.verify() method - more tricks...
Seth Vidal [Wed, 1 Jul 2009 20:51:48 +0000 (16:51 -0400)]
simple yumrepo verify method - similar to the package.verify() method - more tricks to add here

8 years agomanually commit man page lintian patch from Thomas Goirand <thomas@goirand.fr>
Seth Vidal [Tue, 30 Jun 2009 16:22:57 +0000 (12:22 -0400)]
manually commit man page lintian patch from Thomas Goirand <thomas@goirand.fr>

8 years agoapply updated polish translation - closes yum bug 142
Seth Vidal [Mon, 29 Jun 2009 19:31:54 +0000 (15:31 -0400)]
apply updated polish translation - closes yum bug 142

8 years agoAdd more clever to _pkgSack init, BZ 508139 and
James Antill [Fri, 26 Jun 2009 18:30:16 +0000 (14:30 -0400)]
Add more clever to _pkgSack init, BZ 508139 and

8 years agoAdd the reason message for hdrFromPackage failing
James Antill [Wed, 24 Jun 2009 21:56:14 +0000 (17:56 -0400)]
Add the reason message for hdrFromPackage failing

8 years agoDo the module load fallback for iniparse, I believe Jesse needs this
James Antill [Wed, 24 Jun 2009 21:53:58 +0000 (17:53 -0400)]
Do the module load fallback for iniparse, I believe Jesse needs this

8 years agoMove all of iniprase stuff into. config
James Antill [Wed, 24 Jun 2009 21:43:37 +0000 (17:43 -0400)]
Move all of iniprase stuff into. config

8 years agochange MetaLinkRepoErrorParseFail to derive from RepoError - not YumBaseError
Seth Vidal [Fri, 26 Jun 2009 15:17:17 +0000 (11:17 -0400)]
change MetaLinkRepoErrorParseFail to derive from RepoError - not YumBaseError
ultimately fixes: https://bugzilla.redhat.com/show_bug.cgi?id=505156

8 years agoadd patch to translation for spacing issue rh bug: #349425
Seth Vidal [Thu, 25 Jun 2009 16:49:40 +0000 (12:49 -0400)]
add patch to translation for spacing issue rh bug: #349425

8 years agoadd shlex split for url list options so we can handle quoted strings w/spaces
Seth Vidal [Thu, 25 Jun 2009 15:50:36 +0000 (11:50 -0400)]
add shlex split for url list options so we can handle quoted strings w/spaces
in them.

8 years agopartial fix for https://bugzilla.redhat.com/show_bug.cgi?id=505996
Seth Vidal [Wed, 24 Jun 2009 20:58:31 +0000 (16:58 -0400)]
partial fix for https://bugzilla.redhat.com/show_bug.cgi?id=505996
if we notice a package obsoletes something the user wants to install, check to see
if a package by the same NAME is installed and ALSO obsoletes it.
Until we have the obsoletes dbMatch() database up this is the only
way we're going to be able to quickly check. Obviously this isn't fool proof
but it is a start.

8 years agoMerge branch 'yum-3_2_X' of ssh://yum.baseurl.org/srv/projects/yum/git/yum into yum...
Seth Vidal [Wed, 24 Jun 2009 20:31:36 +0000 (16:31 -0400)]
Merge branch 'yum-3_2_X' of ssh://yum.baseurl.org/srv/projects/yum/git/yum into yum-3_2_X

* 'yum-3_2_X' of ssh://yum.baseurl.org/srv/projects/yum/git/yum:
  Revert "Do not format flags if no version is passed to formatRequire."
  Expand the tests for rangeCompare()
  Make unversioned satisfy everything in rangeCompare() also with flag=0.
  Speed up SQL searchFiles() when we can.
  Move preconf deletion, so rpmdb open fails still have it.
  Do not format flags if no version is passed to formatRequire.
  Use LC_MESSAGES instead of LC_CTYPE category in get_my_lang_code
  Work around rpmdb locks issue

8 years agoadd the %s so the complete error message can be printed
Seth Vidal [Wed, 24 Jun 2009 20:30:48 +0000 (16:30 -0400)]
add the %s so the complete error message can be printed

8 years agoRevert "Do not format flags if no version is passed to formatRequire."
James Antill [Tue, 23 Jun 2009 21:53:52 +0000 (17:53 -0400)]
Revert "Do not format flags if no version is passed to formatRequire."

This reverts commit 201776c3a518ecfc3399887e63326ad81448e05d.

 This isn't right ... Eg. =>, (None, None, None) VS. < (1, 2, 3) is
false.

8 years agoExpand the tests for rangeCompare()
James Antill [Tue, 23 Jun 2009 21:46:05 +0000 (17:46 -0400)]
Expand the tests for rangeCompare()

8 years agoMake unversioned satisfy everything in rangeCompare() also with flag=0.
Ville Skyttä [Sun, 21 Jun 2009 20:14:23 +0000 (23:14 +0300)]
Make unversioned satisfy everything in rangeCompare() also with flag=0.

8 years ago Speed up SQL searchFiles() when we can.
James Antill [Tue, 23 Jun 2009 18:51:26 +0000 (14:51 -0400)]
 Speed up SQL searchFiles() when we can.
   Eg. "*/blah" can make the function match be == filename
   Eg. "*bin/blah" can filter to directories that end in "bin", and do
       the filename thing.

8 years agoMove preconf deletion, so rpmdb open fails still have it.
James Antill [Tue, 23 Jun 2009 18:16:15 +0000 (14:16 -0400)]
Move preconf deletion, so rpmdb open fails still have it.
Add "Error:" to rpmdb open failure message.

8 years agoMerge branch 'rpmdb-lock-error' into yum-3_2_X
James Antill [Tue, 23 Jun 2009 18:13:33 +0000 (14:13 -0400)]
Merge branch 'rpmdb-lock-error' into yum-3_2_X

* rpmdb-lock-error:
  Work around rpmdb locks issue

8 years agoDo not format flags if no version is passed to formatRequire.
Ville Skyttä [Sun, 21 Jun 2009 20:11:01 +0000 (23:11 +0300)]
Do not format flags if no version is passed to formatRequire.

8 years agoUse LC_MESSAGES instead of LC_CTYPE category in get_my_lang_code
James Antill [Mon, 22 Jun 2009 14:40:51 +0000 (10:40 -0400)]
Use LC_MESSAGES instead of LC_CTYPE category in get_my_lang_code

8 years agoDon't redo pkgSack init. when pkgSack is false, fixes BZ#507220
James Antill [Mon, 22 Jun 2009 05:25:32 +0000 (01:25 -0400)]
Don't redo pkgSack init. when pkgSack is false, fixes BZ#507220

8 years agoUnbreak the API break
James Antill [Sun, 21 Jun 2009 05:38:23 +0000 (01:38 -0400)]
Unbreak the API break

8 years agoFix delPackage excludes, with new exclude code
James Antill [Sun, 21 Jun 2009 05:20:41 +0000 (01:20 -0400)]
Fix delPackage excludes, with new exclude code

8 years agoFix display of/not-of unrevisioned data, in version command
James Antill [Sun, 21 Jun 2009 05:19:56 +0000 (01:19 -0400)]
Fix display of/not-of unrevisioned data, in version command

8 years agoAdd abaility to test for equality on PackageSackVersion objects
James Antill [Sun, 21 Jun 2009 05:18:42 +0000 (01:18 -0400)]
Add abaility to test for equality on PackageSackVersion objects

8 years agoDon't die accessing local pkgs. for yumdb_info
James Antill [Fri, 19 Jun 2009 21:55:25 +0000 (17:55 -0400)]
Don't die accessing local pkgs. for yumdb_info

8 years agoFix po usage for reinstall, reinstall local etc.
James Antill [Fri, 19 Jun 2009 21:47:45 +0000 (17:47 -0400)]
Fix po usage for reinstall, reinstall local etc.

8 years agoDo the right thing when attribute isn't in the hdr
James Antill [Fri, 19 Jun 2009 21:43:57 +0000 (17:43 -0400)]
Do the right thing when attribute isn't in the hdr

8 years ago Fix _old_ bug in rpmdb.returnNewestByNameArch().
James Antill [Fri, 19 Jun 2009 19:53:25 +0000 (15:53 -0400)]
 Fix _old_ bug in rpmdb.returnNewestByNameArch().
  It tracebacks when we have more than one result,
    luckily that only happens for installonly pkgs.

 Test:
  yb.rpmdb.returnNewestByNameArch(('kernel', 'x86_64'))

8 years agoFix comment on _search()
James Antill [Fri, 19 Jun 2009 19:48:53 +0000 (15:48 -0400)]
Fix comment on _search()

8 years agoSpeed up install "font(:lang=en)", by a couple of seconds
James Antill [Fri, 19 Jun 2009 19:25:55 +0000 (15:25 -0400)]
Speed up install "font(:lang=en)", by a couple of seconds

8 years agoSpeed up install "font(:lang=en)", by a huge amount (~21 minutes)
James Antill [Fri, 19 Jun 2009 19:24:05 +0000 (15:24 -0400)]
Speed up install "font(:lang=en)", by a huge amount (~21 minutes)

8 years ago Allow things to set repo directory attributes again (fixes BZ 506640).
James Antill [Thu, 18 Jun 2009 16:36:33 +0000 (12:36 -0400)]
 Allow things to set repo directory attributes again (fixes BZ 506640).
  Use preload on pkgs.
  When pkgdir is changed, preload from old pkgdirs.

8 years agocatch keyerrors from getpwuid/getpwgid:
Seth Vidal [Thu, 18 Jun 2009 16:31:35 +0000 (12:31 -0400)]
catch keyerrors from getpwuid/getpwgid:
fixes rh bug https://bugzilla.redhat.com/show_bug.cgi?id=506764

8 years agoReset the colours to blank, when we turn color off
James Antill [Thu, 18 Jun 2009 15:39:29 +0000 (11:39 -0400)]
Reset the colours to blank, when we turn color off

8 years agoswitch to subprocess.Popen from os.popen3 - there might be an exception catch we...
Seth Vidal [Thu, 18 Jun 2009 15:14:31 +0000 (11:14 -0400)]
switch to subprocess.Popen from os.popen3 - there might be an exception catch we need to add
but this seems to work correctly in testing.
closes rh bug: https://bugzilla.redhat.com/show_bug.cgi?id=506707

8 years agoadd test case and modify compare_providers so that rh bug# 502401 stops
Seth Vidal [Wed, 17 Jun 2009 22:15:39 +0000 (18:15 -0400)]
add test case and modify compare_providers so that rh bug# 502401 stops
freaking people out

8 years ago- comment in depsolve about a new test in compare_providers
Seth Vidal [Tue, 16 Jun 2009 15:20:51 +0000 (11:20 -0400)]
- comment in depsolve about a new test in compare_providers
- fix the unittests since we added preconf.arch on all platforms which are NOT x86_64 :)

8 years agofix spelling of 'depedancy' which has been there for a long arse time.
Seth Vidal [Mon, 15 Jun 2009 21:26:59 +0000 (17:26 -0400)]
fix spelling of 'depedancy' which has been there for a long arse time.

8 years agoso much drama:
Seth Vidal [Mon, 15 Jun 2009 21:13:15 +0000 (17:13 -0400)]
so much drama:
I said don't make it just raise w/o the exception catch

8 years agoCleanup metadataCurrent.
James Antill [Sat, 13 Jun 2009 13:58:35 +0000 (09:58 -0400)]
Cleanup metadataCurrent.

8 years agoDo metalink cache check when using metalink as mirrorlist, BZ#484537
James Antill [Sat, 13 Jun 2009 13:55:56 +0000 (09:55 -0400)]
Do metalink cache check when using metalink as mirrorlist, BZ#484537

8 years agoAdd comment about UpdateNoticeExceptions
James Antill [Fri, 12 Jun 2009 22:42:57 +0000 (18:42 -0400)]
Add comment about UpdateNoticeExceptions

8 years agoDisable the remove-first/remove-last parts of teh installonly change
James Antill [Fri, 12 Jun 2009 22:41:25 +0000 (18:41 -0400)]
Disable the remove-first/remove-last parts of teh installonly change

8 years agoLet aliases be used in shell
James Antill [Fri, 12 Jun 2009 20:15:48 +0000 (16:15 -0400)]
Let aliases be used in shell

8 years agoDo the join hack for python "unicode strings", in listTransactions
James Antill [Fri, 12 Jun 2009 20:04:44 +0000 (16:04 -0400)]
Do the join hack for python "unicode strings", in listTransactions

8 years agoSplit the Summary of listTransaction up, so it doesn't have lots of zeros
James Antill [Fri, 12 Jun 2009 20:01:37 +0000 (16:01 -0400)]
Split the Summary of listTransaction up, so it doesn't have lots of zeros

8 years agoMerge branch 'string_changes' into yum-3_2_X
James Antill [Fri, 12 Jun 2009 19:07:42 +0000 (15:07 -0400)]
Merge branch 'string_changes' into yum-3_2_X

* string_changes:
  Change the C-c string, for width

8 years ago Add tsInfo.addDowngrade().
James Antill [Fri, 12 Jun 2009 19:02:44 +0000 (15:02 -0400)]
 Add tsInfo.addDowngrade().
  Change makelists() to optionally sort downgrade/reinstall lists out of
  the install/remove lists.
  Use new makelists in listTransaction().

8 years agoAllow configuration of installonly pkgs. via. yumdb option
James Antill [Wed, 10 Jun 2009 21:16:55 +0000 (17:16 -0400)]
Allow configuration of installonly pkgs. via. yumdb option

8 years agoMake the reinstall messages nicer, for remove/install problems
James Antill [Mon, 8 Jun 2009 15:00:26 +0000 (11:00 -0400)]
Make the reinstall messages nicer, for remove/install problems

8 years agoAdd arch. to loaded data in _packageByKey, call _pkgKeyExcluded properly
James Antill [Mon, 8 Jun 2009 13:48:14 +0000 (09:48 -0400)]
Add arch. to loaded data in _packageByKey, call _pkgKeyExcluded properly

8 years agoAdd dict based include/exclude, for "large" ACL type stuff
James Antill [Sun, 7 Jun 2009 17:57:22 +0000 (13:57 -0400)]
Add dict based include/exclude, for "large" ACL type stuff

8 years ago Add addPackageExcluder API.
James Antill [Fri, 5 Jun 2009 21:26:41 +0000 (17:26 -0400)]
 Add addPackageExcluder API.
   Use it for includepkgs/excludepkgs, speeds up includepkgs a lot.
   Now possible to do "only glibc.i?86" easily etc.
 Don't save pkgs in pkgobjlist, can't work anyway.

8 years agoHave everything go through, _pkgExcludedRKNEVRA, create _delPackageRK().
James Antill [Fri, 5 Jun 2009 18:53:36 +0000 (14:53 -0400)]
Have everything go through, _pkgExcludedRKNEVRA, create _delPackageRK().

8 years agoExpand _pkgExcluded, so we can have one function with exclude code.
James Antill [Fri, 5 Jun 2009 18:51:33 +0000 (14:51 -0400)]
Expand _pkgExcluded, so we can have one function with exclude code.

8 years agoTidy up pkgKeyExcluded and packageByKey*
James Antill [Fri, 5 Jun 2009 18:40:03 +0000 (14:40 -0400)]
Tidy up pkgKeyExcluded and packageByKey*

8 years agocatch the UpdateNoticeException and skip the notice, emitting an error about it
Seth Vidal [Wed, 10 Jun 2009 19:28:49 +0000 (15:28 -0400)]
catch the UpdateNoticeException and skip the notice, emitting an error about it
suboptimal but...

8 years agoapparently rpm can, occasionally make versions and releases which contain quotes.
Seth Vidal [Wed, 3 Jun 2009 15:44:26 +0000 (11:44 -0400)]
apparently rpm can, occasionally make versions and releases which contain quotes.

misc.to_xml them as attributes for the prcos.

8 years agorather far and wide changes to accomodate having arch and releasever be settable
Seth Vidal [Mon, 1 Jun 2009 21:29:41 +0000 (17:29 -0400)]
rather far and wide changes to accomodate having arch and releasever be settable
attributes in yum.preconf. This should work correctly now, at least it appears to
note - this only lets you set the arch it will depsolve and act as - it doesn't
make yum run the rpm scriptlets using that processor or an emulator so this is
only for things that can happen BEFORE the transaction.

8 years agofix speling error for pckages - rh bug $503123 :)
Jens Petersen [Mon, 1 Jun 2009 16:22:24 +0000 (12:22 -0400)]
fix speling error for pckages - rh bug $503123 :)

8 years agoarchstorage object for settable arch/basearch
Seth Vidal [Fri, 29 May 2009 23:39:27 +0000 (19:39 -0400)]
archstorage object for settable arch/basearch

8 years agoupdate danish translation from: Kris Thomsen <lakristho@gmail.com>
Seth Vidal [Thu, 28 May 2009 19:25:31 +0000 (15:25 -0400)]
update danish translation from: Kris Thomsen <lakristho@gmail.com>

8 years agoupdated Swedish translation by Göran Uddeborg
Tim Lauridsen [Mon, 25 May 2009 07:44:07 +0000 (09:44 +0200)]
updated Swedish translation by Göran Uddeborg

8 years agoUse YumBase.setCacheDir() in cli, remove cache = 0 from setCacheDir()
James Antill [Sat, 23 May 2009 03:06:15 +0000 (23:06 -0400)]
Use YumBase.setCacheDir() in cli, remove cache = 0 from setCacheDir()

8 years agoAdd setCacheDir(), to make setting user cache dirs. easier
James Antill [Fri, 22 May 2009 22:00:16 +0000 (18:00 -0400)]
Add setCacheDir(), to make setting user cache dirs. easier

8 years agoAllow users to put config. vars in cachedir/installroot/etc.
James Antill [Fri, 22 May 2009 21:02:29 +0000 (17:02 -0400)]
Allow users to put config. vars in cachedir/installroot/etc.

8 years agoShow metalink data for Fedora 11, with the metalink is mirrorlist hack
James Antill [Fri, 22 May 2009 03:14:12 +0000 (23:14 -0400)]
Show metalink data for Fedora 11, with the metalink is mirrorlist hack

8 years agoDon't output all of repoid, if only one revision of repoid
James Antill [Thu, 21 May 2009 21:33:18 +0000 (17:33 -0400)]
Don't output all of repoid, if only one revision of repoid

8 years agoAdd from_repo and from_repo_rev, dito. avail. Use columns output.
James Antill [Thu, 21 May 2009 21:28:38 +0000 (17:28 -0400)]
Add from_repo and from_repo_rev, dito. avail. Use columns output.

8 years agoFirst version of version, command
James Antill [Thu, 21 May 2009 16:59:50 +0000 (12:59 -0400)]
First version of version, command

8 years agoswedish translation update
Göran Uddeborg [Thu, 21 May 2009 18:48:14 +0000 (14:48 -0400)]
swedish translation update

8 years agoDon't show .tmp attributes
James Antill [Wed, 20 May 2009 19:42:36 +0000 (15:42 -0400)]
Don't show .tmp attributes

8 years agoFix python shutdown weirdo
James Antill [Wed, 20 May 2009 19:39:14 +0000 (15:39 -0400)]
Fix python shutdown weirdo

8 years agoAdd more data to the yumdb
James Antill [Wed, 20 May 2009 19:24:58 +0000 (15:24 -0400)]
Add more data to the yumdb

8 years agoDrop cached rpmdb data at various points, work around bad GC
James Antill [Wed, 20 May 2009 19:17:01 +0000 (15:17 -0400)]
Drop cached rpmdb data at various points, work around bad GC

8 years agoAllow users to clean their private cache dirs
James Antill [Tue, 19 May 2009 18:47:02 +0000 (14:47 -0400)]
Allow users to clean their private cache dirs

8 years agoSpeed up tests for: "are we using a valid hash"
James Antill [Mon, 18 May 2009 15:45:02 +0000 (11:45 -0400)]
Speed up tests for: "are we using a valid hash"

8 years agoadd japanese translation from: Tadashi Jokagi
Seth Vidal [Wed, 20 May 2009 15:02:35 +0000 (11:02 -0400)]
add japanese translation from: Tadashi Jokagi

8 years agomerge changelog yum-3-2-23
Seth Vidal [Tue, 19 May 2009 21:04:01 +0000 (17:04 -0400)]
merge changelog

8 years agomark as 3.2.23
Seth Vidal [Tue, 19 May 2009 19:54:50 +0000 (15:54 -0400)]
mark as 3.2.23

8 years agoConvert sha to sha1 in digest()/hexdigest()
James Antill [Thu, 14 May 2009 13:39:19 +0000 (09:39 -0400)]
Convert sha to sha1 in digest()/hexdigest()

8 years agoPass size parameter to checksum for packages and MD
James Antill [Wed, 13 May 2009 22:44:32 +0000 (18:44 -0400)]
Pass size parameter to checksum for packages and MD

8 years agoRely on Checksums() to do the sha to sha1 conversion
James Antill [Wed, 13 May 2009 22:44:08 +0000 (18:44 -0400)]
Rely on Checksums() to do the sha to sha1 conversion

8 years agoAdd option to check size of checksumed data
James Antill [Wed, 13 May 2009 22:04:41 +0000 (18:04 -0400)]
Add option to check size of checksumed data

8 years agoSet checksum_type to what we'll use, for local pkgs
James Antill [Wed, 13 May 2009 21:56:10 +0000 (17:56 -0400)]
Set checksum_type to what we'll use, for local pkgs

8 years agoAdd reinstall of local rpms
James Antill [Wed, 13 May 2009 21:07:05 +0000 (17:07 -0400)]
Add reinstall of local rpms

8 years agoFix downgrade local, when we have excludes
James Antill [Wed, 13 May 2009 20:59:58 +0000 (16:59 -0400)]
Fix downgrade local, when we have excludes

8 years agoDon't checksum local pkg data
James Antill [Wed, 13 May 2009 20:23:17 +0000 (16:23 -0400)]
Don't checksum local pkg data