summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Use isjustname() where appropriate.Zac Medico2009-09-123-5/+6
| | | | svn path=/main/trunk/; revision=14236
* Fix isjustname docstring to have a valid atom in the example.Zac Medico2009-09-121-1/+1
| | | | svn path=/main/trunk/; revision=14235
* Reimplement isjustname() using the Atom class. Thanks to Marat RadchenkoZac Medico2009-09-121-13/+8
| | | | | | <marat@slonopotamus.org> for the suggestion. svn path=/main/trunk/; revision=14234
* In config.getvirtuals(), save Atom instances in order to avoid revalidation.Zac Medico2009-09-121-17/+38
| | | | | | Also, fix cpv_expand() to handle Atom instances from config.getvirtuals(). svn path=/main/trunk/; revision=14233
* Make dbapi.move_ent() take advantage of Atom instances when validatingZac Medico2009-09-122-9/+8
| | | | | | arguments. svn path=/main/trunk/; revision=14232
* Add missing InvalidAtom import.Zac Medico2009-09-121-1/+1
| | | | svn path=/main/trunk/; revision=14231
* Make parse_updates() and update_dbentry() use Atom instances.Zac Medico2009-09-121-9/+27
| | | | svn path=/main/trunk/; revision=14230
* Fix bad assumptions.Zac Medico2009-09-121-20/+15
| | | | svn path=/main/trunk/; revision=14229
* Fix poor assumptions.Zac Medico2009-09-121-6/+9
| | | | svn path=/main/trunk/; revision=14228
* Fix bugs and poor assumptions.Zac Medico2009-09-121-7/+5
| | | | svn path=/main/trunk/; revision=14227
* Update grabdict_package and grabfile_package calling code to take advantageZac Medico2009-09-121-35/+18
| | | | | | | of Atom instances, and convert *atom from 'packages' to a normal Atom instance when it's stored in prevmaskdict. svn path=/main/trunk/; revision=14226
* Make grabfile_package() accept *atom only for files named 'packages' sinceZac Medico2009-09-121-1/+2
| | | | | | they are not valid in any other files. svn path=/main/trunk/; revision=14225
* Make grabdict_package() and grabfile_package() return Atom instances whenZac Medico2009-09-121-12/+25
| | | | | | possible, in order to avoid revalidation. svn path=/main/trunk/; revision=14224
* Implement Atom.__copy__ and __deepcopy__ to return self, since instances areZac Medico2009-09-121-0/+9
| | | | | | immutable. svn path=/main/trunk/; revision=14223
* Bug #257660 - Handle directories that are unlisted in Entries, which is normalZac Medico2009-09-121-1/+5
| | | | | | | when checked out without -P. Thanks to Christian Ruppert <idl0r@gentoo.org> for this patch. svn path=/main/trunk/; revision=14222
* Add test cases for operators with missing version component.Zac Medico2009-09-081-2/+7
| | | | svn path=/main/trunk/; revision=14221
* Add test case for * operator with missing =.Zac Medico2009-09-081-0/+1
| | | | svn path=/main/trunk/; revision=14220
* simplify atom regex (winning even more performance) and turns it in verboseZac Medico2009-09-082-8/+19
| | | | | | | mode with comments. Added more corner case tests. Thanks to Marat Radchenko <marat@slonopotamus.org> for this patch from bug #276813. svn path=/main/trunk/; revision=14219
* Reimplement isspecific() using a single regular expression match. Thanks toZac Medico2009-09-081-11/+9
| | | | | | Marat Radchenko <marat@slonopotamus.org> for this patch. svn path=/main/trunk/; revision=14217
* Fix isvalidatom() to check the 'must not end in' clause from PMS 2.1.2.Zac Medico2009-09-082-6/+16
| | | | | | Thanks to Marat Radchenko <marat@slonopotamus.org> for this patch. svn path=/main/trunk/; revision=14216
* Reimplement isvalidatom() to use a single regular expression match. ThanksZac Medico2009-09-072-68/+44
| | | | | | to Marat Radchenko <marat@slonopotamus.org> for this patch from bug #276813. svn path=/main/trunk/; revision=14213
* Bug #283795 - Make dep_check() filter out expanded indirect virual deps afterZac Medico2009-09-071-11/+26
| | | | | | they are no longer needed, in order to avoid distortion of the depgraph. svn path=/main/trunk/; revision=14212
* Optimize catpkgsplit() by creating a tuple directly instead of generating itZac Medico2009-09-071-4/+3
| | | | | | | from a list. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this patch. svn path=/main/trunk/; revision=14211
* In catpkgsplit(), use split('/', 1) since there should never be more than onZac Medico2009-09-071-1/+1
| | | | | | slash to split. svn path=/main/trunk/; revision=14210
* Handle AttributeError instead of using getattr. Thanks to Marat RadchenkoZac Medico2009-09-071-3/+3
| | | | | | <slonopotamusorama@gmail.com> for reporting. svn path=/main/trunk/; revision=14209
* In display_news_notification(), use the exising vartree instance to populateZac Medico2009-09-061-0/+6
| | | | | | | settings.treeVirtuals, to avoid having a temporary one instantiated. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for reporting. svn path=/main/trunk/; revision=14208
* Remove unused vardbapi._counter_hash() method.Zac Medico2009-09-061-19/+0
| | | | svn path=/main/trunk/; revision=14207
* Add ACCEPT_LICENSE and ACCEPT_PROPERTIES to the Packages file header.Zac Medico2009-09-051-1/+3
| | | | svn path=/main/trunk/; revision=14204
* Add a vardbapi._pkgs_changed attribute to use instead of PORTAGE_COUNTER_HASHZac Medico2009-09-053-9/+7
| | | | | | | | | for emerge to check whether any packages have been added/removed. This is an optimization, since vardbapi._counter_hash() can be somewhat slow on embedded systems. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for reporting. svn path=/main/trunk/; revision=14203
* Inside Scheduler._check_manifests(), display all broken manifests instead ofZac Medico2009-09-051-1/+5
| | | | | | | returning after the first one. Thanks to Vlastimil Babka <caster@g.o> for the suggestion. svn path=/main/trunk/; revision=14202
* Use _unicode_decode() on the string returned from time.strftime(), in orderZac Medico2009-09-055-6/+20
| | | | | | | to avoid a potential UnicodeDecodeError later. Thanks to Markus Duft <mduft@gentoo.org> for reporting. svn path=/main/trunk/; revision=14201
* DEPCACHE_PATH is not used with ROOT at all, so move it out of the ↵Fabian Groffen2009-09-051-1/+1
| | | | | | target_root variable group svn path=/main/trunk/; revision=14199
* pym/portage/sets/files.py: use WORLD_FILE instead of manual reconstructionFabian Groffen2009-09-053-6/+6
| | | | | | | | | pym/portage/const.py: introduce WORLD_SETS_FILE variable pym/portage/sets/files.py: use new WORLD_SETS_FILE var pym/_emerge/unmerge.py: likewise svn path=/main/trunk/; revision=14197
* reorganise const.py to have logical grouping based on usageFabian Groffen2009-09-051-28/+49
| | | | | | | | | | grouped into use with config_root, target_root or nothing, made all variables that are used with config_root or target_root not start with a leading slash, such that they can be directly used with os.path.join (which they should because of xxxx_root). svn path=/main/trunk/; revision=14192
* DEPRECATED_PROFILE_FILE is derived from PROFILE_PATH which has no leading slashFabian Groffen2009-09-051-1/+1
| | | | svn path=/main/trunk/; revision=14191
* PRIVATE_PATH has no leading slash (like all other uses of this var assume)Fabian Groffen2009-09-051-2/+2
| | | | svn path=/main/trunk/; revision=14189
* consistently use CACHE_PATH with target_root, this commit needs a separate ↵Fabian Groffen2009-09-056-14/+14
| | | | | | soon to be done commit of pym/portage/const.py to work correctly svn path=/main/trunk/; revision=14188
* Fix usage of VDB_PATHFabian Groffen2009-09-051-1/+1
| | | | svn path=/main/trunk/; revision=14187
* Remove unnecessary redundant dict lookup at the beginning of catpkgsplit().Zac Medico2009-09-051-2/+0
| | | | | | Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this patch. svn path=/main/trunk/; revision=14186
* Bug #282808 - Handle a potential KeyError inside PollScheduler._poll_loop()Zac Medico2009-09-051-1/+8
| | | | | | | when _poll_event_queue contains an event for a file descriptor that has already been unregistered. svn path=/main/trunk/; revision=14185
* Fix typo from previous commit.Zac Medico2009-09-031-1/+1
| | | | svn path=/main/trunk/; revision=14182
* Bug #283513 - Do not allow --noreplace together with --emptytree since itZac Medico2009-09-031-0/+6
| | | | | | results in bogus masking messages. svn path=/main/trunk/; revision=14181
* Use _unicode_decode() on the string retunred from time.strftime(), in orderZac Medico2009-09-031-1/+7
| | | | | | | to avoid a potential UnicodeDecodeError later. Thanks to Markus Duft <mduft@gentoo.org> for reporting. svn path=/main/trunk/; revision=14180
* Bug #283292 - Fix FindPortdir() to prevent OSError: [Errno 2] from stat whenZac Medico2009-08-311-1/+1
| | | | | | $PWD is unset. Thanks to Jonathan Callen <en.ABCD@gmail.com> for this patch. svn path=/main/trunk/; revision=14174
* Fix broken indentation from previous commits.Zac Medico2009-08-301-5/+5
| | | | svn path=/main/trunk/; revision=14173
* Bug #283223 - Don't call str() on unicode strings inside _db_escape_string(),Zac Medico2009-08-301-1/+5
| | | | | | since it can trigger a UnicodeEncodeError in python-2.x. svn path=/main/trunk/; revision=14172
* Bug #283223 - Don't call str() inside _db_escape_string(), since it'sZac Medico2009-08-301-1/+1
| | | | | | redundant and it can trigger a UnicodeEncodeError in python-2.x. svn path=/main/trunk/; revision=14171
* Use KeyValuePairFileLoader intead on getconfig(), since getconfig() is tooZac Medico2009-08-291-5/+9
| | | | | | strict about variable names now. svn path=/main/trunk/; revision=14169
* Use KeyValuePairFileLoader instead of getconfig() for /etc/portage/modules,Zac Medico2009-08-291-2/+5
| | | | | | | since getconfig() is too strict about variable names now. Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=14168
* Bug #281834 - In getconfig(), do not allow definition of variables that haveZac Medico2009-08-281-0/+13
| | | | | | invalid names according to shell standards (such as names containing hyphens). svn path=/main/trunk/; revision=14167