| 55 | } |
| 56 | |
| 57 | void Meta::Version::mergeFromList(const Meta::VersionPtr& other) |
| 58 | { |
| 59 | if(other->m_providesRecommendations) |
| 60 | { |
| 61 | if(m_recommended != other->m_recommended) |
| 62 | { |
| 63 | setRecommended(other->m_recommended); |
| 64 | } |
| 65 | } |
| 66 | if (m_type != other->m_type) |
| 67 | { |
| 68 | setType(other->m_type); |
| 69 | } |
| 70 | if (m_time != other->m_time) |
| 71 | { |
| 72 | setTime(other->m_time); |
| 73 | } |
| 74 | if (m_requires != other->m_requires) |
| 75 | { |
| 76 | m_requires = other->m_requires; |
| 77 | } |
| 78 | if (m_conflicts != other->m_conflicts) |
| 79 | { |
| 80 | m_conflicts = other->m_conflicts; |
| 81 | } |
| 82 | if(m_volatile != other->m_volatile) |
| 83 | { |
| 84 | setVolatile(other->m_volatile); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | void Meta::Version::merge(const VersionPtr &other) |
| 89 | { |