Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Part 2 CUR::Distribution -> Distribution migration
  • Loading branch information
lizmat committed Jun 16, 2014
1 parent 7e66d3e commit 6ca805d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/core/Distribution.pm
@@ -1,4 +1,4 @@
class CompUnitRepo::Distribution {
class Distribution {
has $.id is rw;
has $.name;
has $.auth;
Expand All @@ -13,7 +13,7 @@ class CompUnitRepo::Distribution {
has $.source-url;
method auth { $!auth // $!author // $!authority }
method ver { $!ver // $!version }
method Hash {
method hash {
{
:$!id,
:$!name,
Expand All @@ -27,3 +27,8 @@ class CompUnitRepo::Distribution {
}
}
}

# during panda migration period
class CompUnitRepo::Distribution is Distribution {
method Hash { self.hash }
}

0 comments on commit 6ca805d

Please sign in to comment.