Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurations with common base loaded incorrectly #178

Open
GoogleCodeExporter opened this issue Mar 24, 2015 · 3 comments
Open

Configurations with common base loaded incorrectly #178

GoogleCodeExporter opened this issue Mar 24, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

see 
http://groups.google.com/group/metacello/browse_thread/thread/d9a2819134ea18e0

I also saw this while loading the Moose configuration

Original issue reported on code.google.com by henrichs...@gmail.com on 23 Feb 2012 at 7:59

@GoogleCodeExporter
Copy link
Author

Here's the source for MetacelloGoferPackage>>matches: that looks like it fixes 
Mariano's ConfigurationOfNautilus problem and the Moose ConfigurationOfGlamour 
issue that I ran into (in retrospect, it looks like the Moose bug was a 
consequence of some additional changes I had made to the system for 
1.0-beta.32...):

matches: aLoadableReference
    "does Monticello-style #versionInfoFromVersionNamed: matching"

    | pFilename refName char |
    ((pFilename := self packageFilename) == nil or: [ self name = self packageFilename ])
        ifTrue: [ ^ super matches: aLoadableReference ].
    aLoadableReference name = pFilename
        ifTrue: [ ^ true ].
    (aLoadableReference name beginsWith: pFilename)
        ifFalse: [ ^ false ].
    refName := aLoadableReference packageName.
    refName = pFilename
        ifTrue: [ ^ true ].
    pFilename size < refName size
        ifTrue: [ 
            (refName beginsWith: pFilename)
                ifFalse: [ ^ false ].
            (char := pFilename at: pFilename size) ~= $-
                ifTrue: [ char := refName at: pFilename size + 1 ] ]
        ifFalse: [ 
            (pFilename beginsWith: refName)
                ifFalse: [ ^ false ].
            (char := refName at: refName size) ~= $-
                ifTrue: [ char := pFilename at: refName size + 1 ] ].
    ^ char = $. or: [ char = $- ]

The Metacello tests all pass (they didn't with the earlier patch), so this one 
should be safe to use ... I'll be working this into a release in the next day 
or so ...

Original comment by henrichs...@gmail.com on 24 Feb 2012 at 1:17

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

The fix plus additional tests committed to an "issue178 branch":

  Metacello-MC.issue178-dkh.549
  Metacello-TestsMC.issue178-dkh.170

in http://seaside.gemstone.com/ss/metacello

Original comment by henrichs...@gmail.com on 24 Feb 2012 at 1:23

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Original comment by henrichs...@gmail.com on 19 May 2012 at 7:41

  • Added labels: Milestone-1.0-beta.31.2
  • Removed labels: Milestone-1.0-beta.31.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant