You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Johnny Zhang (JIRA)" <ji...@apache.org> on 2013/01/12 01:14:14 UTC

[jira] [Created] (BIGTOP-825) make package manager be able to handle two conflicted packages

Johnny Zhang created BIGTOP-825:
-----------------------------------

             Summary: make package manager be able to handle two conflicted packages
                 Key: BIGTOP-825
                 URL: https://issues.apache.org/jira/browse/BIGTOP-825
             Project: Bigtop
          Issue Type: Bug
          Components: Tests
    Affects Versions: 0.6.0
            Reporter: Johnny Zhang
            Assignee: Johnny Zhang
             Fix For: 0.6.0


my package tests is using package manager in iTest. I need to handle the situation that install two conflicted package in sequentially, which means 
......
install a
do pkg test for a
uninstall a
install b
do pkg test for b
.....

I think adding a tag <conflictwith> in pkg manifest and corresponding logic in YumCmdLinePackageManager.groovy, ZypperCmdLinePackageManager.groovy, AptCmdLinePackageManager.groovy should be able to resolve this question. something like

<pkg-a>
    <conflictwith>pkg-b</conflictwith>
    <metadata>
      <summary>xxxxxxxxxxxxxxxx</summary>
      <description>xxxxxxxxxxxx</description>
      <url>xxxxxxxxxxxxxxxxxxxx</url>
    </metadata>
......
</pkg-a>

before installing pkg-a, check if <conflictwith> presented, if so, uninstall the corresponding pkg first.

I am working on a patch, will post it soon.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira