Fri Oct 12 12:22:58 2012: Request 80151 was acted upon.
Transaction: Ticket created by KENO
       Queue: PAR
     Subject: non-fallback repository should on the front of the queue
   Broken in: 1.005
    Severity: Important
       Owner: Nobody
  Requestors: k...@cpan.org
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=80151 >


Suppose we use a repository as follows:

            require PAR;
            PAR->import( { repository => $url1,
                           fallback   => 0, # check repository first
                         } );

Then, we use another repository:

            PAR->import( { repository => $url2,
                           fallback   => 0, # check repository first
                         } );

Later, we require Foo, and both repositories contain a Foo module.  Which 
repository's Foo 
should be loaded?  Today PAR::import gives priority to $url1, but I claim it 
should be $url2.  
Does anyone disagree?

The patch is attached.

Thanks!
Ken


Attachment: PriorityRepositoryObjects.diff
Description: Binary data

Reply via email to