autoproj 1.8.2.b6 → 1.8.2.b7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/autoproj_bootstrap +75 -77
- data/lib/autoproj/cmdline.rb +3 -3
- data/lib/autoproj/default.osdeps +10 -1
- data/lib/autoproj/manifest.rb +2 -18
- data/lib/autoproj/osdeps.rb +6 -14
- data/lib/autoproj/system.rb +1 -2
- data/lib/autoproj/version.rb +1 -1
- data/test/test_os_dependencies.rb +10 -31
- metadata +64 -106
    
        data/bin/autoproj_bootstrap
    CHANGED
    
    | @@ -742,7 +742,7 @@ fi | |
| 742 742 | 
             
                        else
         | 
| 743 743 | 
             
                            if !@operating_system.nil?
         | 
| 744 744 | 
             
                                return @operating_system
         | 
| 745 | 
            -
                            elsif Autoproj.has_config_key?('operating_system') | 
| 745 | 
            +
                            elsif Autoproj.has_config_key?('operating_system')
         | 
| 746 746 | 
             
                                os = Autoproj.user_config('operating_system')
         | 
| 747 747 | 
             
                                if os.respond_to?(:to_ary)
         | 
| 748 748 | 
             
                                    if os[0].respond_to?(:to_ary) && os[0].all? { |s| s.respond_to?(:to_str) } &&
         | 
| @@ -951,7 +951,7 @@ fi | |
| 951 951 | 
             
                        found = false
         | 
| 952 952 | 
             
                        nonexistent = false
         | 
| 953 953 | 
             
                        result = []
         | 
| 954 | 
            -
                        found_keys =  | 
| 954 | 
            +
                        found_keys = []
         | 
| 955 955 | 
             
                        Array(dep_def).each do |names, values|
         | 
| 956 956 | 
             
                            if !values
         | 
| 957 957 | 
             
                                # Raw array of packages. Possible only if we are not at toplevel
         | 
| @@ -997,15 +997,9 @@ fi | |
| 997 997 | 
             
                                matching_name = keys.find { |k| names.any? { |name_tag| k == name_tag.downcase } }
         | 
| 998 998 | 
             
                                if matching_name
         | 
| 999 999 | 
             
                                    rec_found, rec_result = partition_osdep_entry(osdep_name, values, handler_names, excluded, *additional_keys)
         | 
| 1000 | 
            -
             | 
| 1001 | 
            -
                                     | 
| 1002 | 
            -
             | 
| 1003 | 
            -
                                    idx = keys.index(matching_name)
         | 
| 1004 | 
            -
                                    if !rec_found
         | 
| 1005 | 
            -
                                        if !found_keys.has_key?(idx)
         | 
| 1006 | 
            -
                                            found_keys[idx] = nil
         | 
| 1007 | 
            -
                                        end
         | 
| 1008 | 
            -
                                    else
         | 
| 1000 | 
            +
             | 
| 1001 | 
            +
                                    if rec_found
         | 
| 1002 | 
            +
                                        idx = keys.index(matching_name)
         | 
| 1009 1003 | 
             
                                        found_keys[idx] ||= [0, []]
         | 
| 1010 1004 | 
             
                                        found_keys[idx][0] += rec_found
         | 
| 1011 1005 | 
             
                                        found_keys[idx][1].concat(rec_result)
         | 
| @@ -1013,9 +1007,7 @@ fi | |
| 1013 1007 | 
             
                                end
         | 
| 1014 1008 | 
             
                            end
         | 
| 1015 1009 | 
             
                        end
         | 
| 1016 | 
            -
                         | 
| 1017 | 
            -
                        found_keys = found_keys[first_entry]
         | 
| 1018 | 
            -
                        if found_keys
         | 
| 1010 | 
            +
                        if found_keys = found_keys.compact.first
         | 
| 1019 1011 | 
             
                            if found_keys[0] > 0
         | 
| 1020 1012 | 
             
                                nonexistent = true
         | 
| 1021 1013 | 
             
                            else
         | 
| @@ -1649,7 +1641,6 @@ module Autoproj | |
| 1649 1641 | 
             
                def self.set_initial_env
         | 
| 1650 1642 | 
             
                    Autoproj.env_set 'RUBYOPT', "-rubygems"
         | 
| 1651 1643 | 
             
                    Autoproj.env_set 'GEM_HOME', Autoproj.gem_home
         | 
| 1652 | 
            -
                    Autoproj.env_add_path 'GEM_PATH', Autoproj.gem_home
         | 
| 1653 1644 | 
             
                    Autoproj.env_set_path 'PATH', "#{Autoproj.gem_home}/bin", "/usr/local/bin", "/usr/bin", "/bin"
         | 
| 1654 1645 | 
             
                    Autoproj.env_set 'PKG_CONFIG_PATH'
         | 
| 1655 1646 | 
             
                    Autoproj.env_set 'RUBYLIB'
         | 
| @@ -1679,7 +1670,7 @@ module Autoproj | |
| 1679 1670 | 
             
                                Autoproj.message
         | 
| 1680 1671 | 
             
                                Autoproj.message "autodetected the shell to be #{shell_kind}, sourcing autoproj shell helpers"
         | 
| 1681 1672 | 
             
                                Autoproj.message "add \"Autoproj.shell_helpers = false\" in autoproj/init.rb to disable"
         | 
| 1682 | 
            -
                                Autobuild. | 
| 1673 | 
            +
                                Autobuild.env_source_file(shell_file)
         | 
| 1683 1674 | 
             
                            end
         | 
| 1684 1675 | 
             
                        end
         | 
| 1685 1676 | 
             
                    end
         | 
| @@ -1744,86 +1735,93 @@ module Autoproj | |
| 1744 1735 | 
             
            end
         | 
| 1745 1736 |  | 
| 1746 1737 | 
             
            DEFS = <<EODEFS
         | 
| 1747 | 
            -
            --- | 
| 1748 | 
            -
            git: 
         | 
| 1749 | 
            -
              debian: 
         | 
| 1750 | 
            -
                default: git-core
         | 
| 1751 | 
            -
                lenny: git
         | 
| 1752 | 
            -
              arch: git
         | 
| 1753 | 
            -
              gentoo: dev-vcs/git
         | 
| 1754 | 
            -
              ubuntu: git-core
         | 
| 1755 | 
            -
            autotools: 
         | 
| 1756 | 
            -
              debian,ubuntu: 
         | 
| 1757 | 
            -
              - automake1.9
         | 
| 1758 | 
            -
              - autoconf
         | 
| 1759 | 
            -
              arch: automake autoconf
         | 
| 1760 | 
            -
              gentoo: 
         | 
| 1761 | 
            -
              - sys-devel/automake:1.9
         | 
| 1762 | 
            -
              - sys-devel/autoconf
         | 
| 1738 | 
            +
            ---
         | 
| 1763 1739 | 
             
            none: ignore
         | 
| 1764 | 
            -
             | 
| 1765 | 
            -
              debian,ubuntu: | 
| 1766 | 
            -
             | 
| 1767 | 
            -
               | 
| 1768 | 
            -
               | 
| 1769 | 
            -
               | 
| 1770 | 
            -
             | 
| 1771 | 
            -
               | 
| 1772 | 
            -
               | 
| 1773 | 
            -
               | 
| 1774 | 
            -
             | 
| 1775 | 
            -
             | 
| 1776 | 
            -
             | 
| 1777 | 
            -
            ruby19: 
         | 
| 1778 | 
            -
              debian: 
         | 
| 1740 | 
            +
            ruby18:
         | 
| 1741 | 
            +
              debian,ubuntu:
         | 
| 1742 | 
            +
              - ruby1.8-dev
         | 
| 1743 | 
            +
              - ruby1.8
         | 
| 1744 | 
            +
              - rubygems1.8
         | 
| 1745 | 
            +
              - ri1.8
         | 
| 1746 | 
            +
              - libopenssl-ruby1.8
         | 
| 1747 | 
            +
              - rake
         | 
| 1748 | 
            +
              gentoo:
         | 
| 1749 | 
            +
              - dev-lang/ruby:1.8
         | 
| 1750 | 
            +
              - rake
         | 
| 1751 | 
            +
            ruby19:
         | 
| 1752 | 
            +
              debian:
         | 
| 1779 1753 | 
             
              - ruby1.9.1
         | 
| 1780 1754 | 
             
              - ruby1.9.1-dev
         | 
| 1781 1755 | 
             
              - rubygems1.9.1
         | 
| 1782 1756 | 
             
              - rake
         | 
| 1783 | 
            -
               | 
| 1784 | 
            -
              arch: 
         | 
| 1785 | 
            -
              - ruby
         | 
| 1786 | 
            -
              - rake
         | 
| 1787 | 
            -
              gentoo: 
         | 
| 1788 | 
            -
              - dev-lang/ruby:1.9
         | 
| 1789 | 
            -
              - rake
         | 
| 1790 | 
            -
              ubuntu: 
         | 
| 1757 | 
            +
              ubuntu:
         | 
| 1791 1758 | 
             
              - ruby1.9.1
         | 
| 1792 1759 | 
             
              - ruby1.9.1-dev
         | 
| 1793 1760 | 
             
              - rubygems1.9.1
         | 
| 1794 1761 | 
             
              - ri1.9.1
         | 
| 1795 1762 | 
             
              - libopenssl-ruby1.9.1
         | 
| 1796 1763 | 
             
              - rake
         | 
| 1797 | 
            -
             | 
| 1798 | 
            -
               | 
| 1799 | 
            -
              - ruby1.8-dev
         | 
| 1800 | 
            -
              - ruby1.8
         | 
| 1801 | 
            -
              - rubygems1.8
         | 
| 1802 | 
            -
              - ri1.8
         | 
| 1803 | 
            -
              - libopenssl-ruby1.8
         | 
| 1764 | 
            +
              gentoo:
         | 
| 1765 | 
            +
              - dev-lang/ruby:1.9
         | 
| 1804 1766 | 
             
              - rake
         | 
| 1805 | 
            -
               | 
| 1806 | 
            -
              -  | 
| 1767 | 
            +
              arch:
         | 
| 1768 | 
            +
              - ruby
         | 
| 1807 1769 | 
             
              - rake
         | 
| 1808 | 
            -
             | 
| 1770 | 
            +
            build-essential:
         | 
| 1771 | 
            +
              debian,ubuntu: build-essential
         | 
| 1772 | 
            +
              gentoo: ignore
         | 
| 1773 | 
            +
              arch: ignore
         | 
| 1774 | 
            +
            libxml2:
         | 
| 1775 | 
            +
              debian,ubuntu: libxml2-dev
         | 
| 1776 | 
            +
              gentoo: dev-libs/libxml2
         | 
| 1777 | 
            +
              arch: libxml2
         | 
| 1778 | 
            +
            libxslt:
         | 
| 1779 | 
            +
              debian,ubuntu: libxslt1-dev
         | 
| 1780 | 
            +
              gentoo: dev-libs/libxslt
         | 
| 1781 | 
            +
              arch: libxslt
         | 
| 1782 | 
            +
            zlib:
         | 
| 1783 | 
            +
              debian,ubuntu: zlib1g-dev
         | 
| 1784 | 
            +
            autobuild: gem
         | 
| 1785 | 
            +
            autoproj: gem
         | 
| 1786 | 
            +
            git:
         | 
| 1787 | 
            +
              debian:
         | 
| 1788 | 
            +
                lenny: git
         | 
| 1789 | 
            +
                default: git-core
         | 
| 1790 | 
            +
              ubuntu: git-core
         | 
| 1791 | 
            +
              gentoo: dev-vcs/git
         | 
| 1792 | 
            +
              arch: git
         | 
| 1793 | 
            +
            svn:
         | 
| 1809 1794 | 
             
              debian,ubuntu: subversion
         | 
| 1810 | 
            -
              arch: subversion
         | 
| 1811 1795 | 
             
              gentoo: dev-util/subversion
         | 
| 1812 | 
            -
             | 
| 1813 | 
            -
             | 
| 1814 | 
            -
               | 
| 1815 | 
            -
              - | 
| 1816 | 
            -
              arch: 
         | 
| 1796 | 
            +
              arch: subversion
         | 
| 1797 | 
            +
            cmake:
         | 
| 1798 | 
            +
              debian,ubuntu: cmake
         | 
| 1799 | 
            +
              gentoo: dev-util/cmake
         | 
| 1800 | 
            +
              arch: cmake
         | 
| 1801 | 
            +
            autotools:
         | 
| 1802 | 
            +
              debian,ubuntu:
         | 
| 1803 | 
            +
              - automake1.9
         | 
| 1804 | 
            +
              - autoconf
         | 
| 1805 | 
            +
              gentoo:
         | 
| 1806 | 
            +
              - sys-devel/automake:1.9
         | 
| 1807 | 
            +
              - sys-devel/autoconf
         | 
| 1808 | 
            +
              arch: automake autoconf
         | 
| 1809 | 
            +
            lsb_release:
         | 
| 1810 | 
            +
              debian,ubuntu: lsb-release
         | 
| 1811 | 
            +
              gentoo: sys-apps/lsb-release
         | 
| 1812 | 
            +
              arch: ignore
         | 
| 1813 | 
            +
            archive:
         | 
| 1814 | 
            +
              debian,ubuntu:
         | 
| 1817 1815 | 
             
              - tar
         | 
| 1818 1816 | 
             
              - unzip
         | 
| 1819 | 
            -
              gentoo: | 
| 1817 | 
            +
              gentoo:
         | 
| 1820 1818 | 
             
              - app-arch/tar
         | 
| 1821 1819 | 
             
              - app-arch/unzip
         | 
| 1822 | 
            -
             | 
| 1823 | 
            -
             | 
| 1824 | 
            -
               | 
| 1825 | 
            -
             | 
| 1826 | 
            -
               | 
| 1820 | 
            +
              arch:
         | 
| 1821 | 
            +
              - tar
         | 
| 1822 | 
            +
              - unzip
         | 
| 1823 | 
            +
            cvs:
         | 
| 1824 | 
            +
              debian,ubuntu: cvs
         | 
| 1827 1825 |  | 
| 1828 1826 | 
             
            EODEFS
         | 
| 1829 1827 |  | 
    
        data/lib/autoproj/cmdline.rb
    CHANGED
    
    | @@ -187,6 +187,9 @@ module Autoproj | |
| 187 187 | 
             
                            Autoproj.load_if_present(source, source.local_dir, "init.rb")
         | 
| 188 188 | 
             
                        end
         | 
| 189 189 |  | 
| 190 | 
            +
                        # Loads OS package definitions once and for all
         | 
| 191 | 
            +
                        Autoproj.load_osdeps_from_package_sets
         | 
| 192 | 
            +
             | 
| 190 193 | 
             
                        # Load the required autobuild definitions
         | 
| 191 194 | 
             
                        if !silent
         | 
| 192 195 | 
             
                            Autoproj.message("autoproj: loading ...", :bold)
         | 
| @@ -232,9 +235,6 @@ module Autoproj | |
| 232 235 | 
             
                        # is done (since we need to process the package setup blocks), but
         | 
| 233 236 | 
             
                        # save the current state of the configuration anyway.
         | 
| 234 237 | 
             
                        Autoproj.save_config
         | 
| 235 | 
            -
             | 
| 236 | 
            -
                        # Loads OS package definitions once and for all
         | 
| 237 | 
            -
                        Autoproj.load_osdeps_from_package_sets
         | 
| 238 238 | 
             
                    end
         | 
| 239 239 |  | 
| 240 240 | 
             
                    def self.update_configuration
         | 
    
        data/lib/autoproj/default.osdeps
    CHANGED
    
    | @@ -19,7 +19,6 @@ ruby19: | |
| 19 19 | 
             
                    - ruby1.9.1-dev
         | 
| 20 20 | 
             
                    - rubygems1.9.1
         | 
| 21 21 | 
             
                    - rake
         | 
| 22 | 
            -
                    - rubygems-integration
         | 
| 23 22 |  | 
| 24 23 | 
             
                ubuntu:
         | 
| 25 24 | 
             
                    - ruby1.9.1
         | 
| @@ -40,6 +39,16 @@ build-essential: | |
| 40 39 | 
             
                gentoo: ignore
         | 
| 41 40 | 
             
                arch: ignore
         | 
| 42 41 |  | 
| 42 | 
            +
            libxml2:
         | 
| 43 | 
            +
                debian,ubuntu: libxml2-dev
         | 
| 44 | 
            +
                gentoo: dev-libs/libxml2
         | 
| 45 | 
            +
                arch: libxml2
         | 
| 46 | 
            +
             | 
| 47 | 
            +
            libxslt:
         | 
| 48 | 
            +
                debian,ubuntu: libxslt1-dev
         | 
| 49 | 
            +
                gentoo: dev-libs/libxslt
         | 
| 50 | 
            +
                arch: libxslt
         | 
| 51 | 
            +
             | 
| 43 52 | 
             
            zlib:
         | 
| 44 53 | 
             
                debian,ubuntu: zlib1g-dev
         | 
| 45 54 |  | 
    
        data/lib/autoproj/manifest.rb
    CHANGED
    
    | @@ -125,18 +125,6 @@ module Autoproj | |
| 125 125 | 
             
                    Autobuild.env_source_file(file)
         | 
| 126 126 | 
             
                end
         | 
| 127 127 |  | 
| 128 | 
            -
                # Requests that autoproj source the given shell script in its own env.sh
         | 
| 129 | 
            -
                # script
         | 
| 130 | 
            -
                def self.env_source_after(file)
         | 
| 131 | 
            -
                    Autobuild.env_source_after(file)
         | 
| 132 | 
            -
                end
         | 
| 133 | 
            -
             | 
| 134 | 
            -
                # Requests that autoproj source the given shell script in its own env.sh
         | 
| 135 | 
            -
                # script
         | 
| 136 | 
            -
                def self.env_source_before(file)
         | 
| 137 | 
            -
                    Autobuild.env_source_before(file)
         | 
| 138 | 
            -
                end
         | 
| 139 | 
            -
             | 
| 140 128 | 
             
                # Representation of a VCS definition contained in a source.yml file or in
         | 
| 141 129 | 
             
                # autoproj/manifest
         | 
| 142 130 | 
             
                class VCSDefinition
         | 
| @@ -574,7 +562,7 @@ module Autoproj | |
| 574 562 | 
             
                        if local?
         | 
| 575 563 | 
             
                            File.expand_path(vcs.url)
         | 
| 576 564 | 
             
                        else
         | 
| 577 | 
            -
                            File.expand_path(File.join(Autoproj.remotes_dir, vcs. | 
| 565 | 
            +
                            File.expand_path(File.join(Autoproj.remotes_dir, vcs.to_s.gsub(/[^\w]/, '_')))
         | 
| 578 566 | 
             
                        end
         | 
| 579 567 | 
             
                    end
         | 
| 580 568 |  | 
| @@ -1739,11 +1727,7 @@ module Autoproj | |
| 1739 1727 | 
             
                        elsif !available_as_source
         | 
| 1740 1728 | 
             
                            raise ConfigError, "cannot resolve #{name}: it is not a package, not a metapackage and not an osdeps"
         | 
| 1741 1729 | 
             
                        end
         | 
| 1742 | 
            -
                         | 
| 1743 | 
            -
                            return source_packages
         | 
| 1744 | 
            -
                        else
         | 
| 1745 | 
            -
                            return [[:package, name]]
         | 
| 1746 | 
            -
                        end
         | 
| 1730 | 
            +
                        return [[:package, name]]
         | 
| 1747 1731 | 
             
                    end
         | 
| 1748 1732 |  | 
| 1749 1733 | 
             
                    # +name+ can either be the name of a source or the name of a package. In
         | 
    
        data/lib/autoproj/osdeps.rb
    CHANGED
    
    | @@ -643,7 +643,7 @@ fi | |
| 643 643 | 
             
                        else
         | 
| 644 644 | 
             
                            if !@operating_system.nil?
         | 
| 645 645 | 
             
                                return @operating_system
         | 
| 646 | 
            -
                            elsif Autoproj.has_config_key?('operating_system') | 
| 646 | 
            +
                            elsif Autoproj.has_config_key?('operating_system')
         | 
| 647 647 | 
             
                                os = Autoproj.user_config('operating_system')
         | 
| 648 648 | 
             
                                if os.respond_to?(:to_ary)
         | 
| 649 649 | 
             
                                    if os[0].respond_to?(:to_ary) && os[0].all? { |s| s.respond_to?(:to_str) } &&
         | 
| @@ -852,7 +852,7 @@ fi | |
| 852 852 | 
             
                        found = false
         | 
| 853 853 | 
             
                        nonexistent = false
         | 
| 854 854 | 
             
                        result = []
         | 
| 855 | 
            -
                        found_keys =  | 
| 855 | 
            +
                        found_keys = []
         | 
| 856 856 | 
             
                        Array(dep_def).each do |names, values|
         | 
| 857 857 | 
             
                            if !values
         | 
| 858 858 | 
             
                                # Raw array of packages. Possible only if we are not at toplevel
         | 
| @@ -898,15 +898,9 @@ fi | |
| 898 898 | 
             
                                matching_name = keys.find { |k| names.any? { |name_tag| k == name_tag.downcase } }
         | 
| 899 899 | 
             
                                if matching_name
         | 
| 900 900 | 
             
                                    rec_found, rec_result = partition_osdep_entry(osdep_name, values, handler_names, excluded, *additional_keys)
         | 
| 901 | 
            -
             | 
| 902 | 
            -
                                     | 
| 903 | 
            -
             | 
| 904 | 
            -
                                    idx = keys.index(matching_name)
         | 
| 905 | 
            -
                                    if !rec_found
         | 
| 906 | 
            -
                                        if !found_keys.has_key?(idx)
         | 
| 907 | 
            -
                                            found_keys[idx] = nil
         | 
| 908 | 
            -
                                        end
         | 
| 909 | 
            -
                                    else
         | 
| 901 | 
            +
             | 
| 902 | 
            +
                                    if rec_found
         | 
| 903 | 
            +
                                        idx = keys.index(matching_name)
         | 
| 910 904 | 
             
                                        found_keys[idx] ||= [0, []]
         | 
| 911 905 | 
             
                                        found_keys[idx][0] += rec_found
         | 
| 912 906 | 
             
                                        found_keys[idx][1].concat(rec_result)
         | 
| @@ -914,9 +908,7 @@ fi | |
| 914 908 | 
             
                                end
         | 
| 915 909 | 
             
                            end
         | 
| 916 910 | 
             
                        end
         | 
| 917 | 
            -
                         | 
| 918 | 
            -
                        found_keys = found_keys[first_entry]
         | 
| 919 | 
            -
                        if found_keys
         | 
| 911 | 
            +
                        if found_keys = found_keys.compact.first
         | 
| 920 912 | 
             
                            if found_keys[0] > 0
         | 
| 921 913 | 
             
                                nonexistent = true
         | 
| 922 914 | 
             
                            else
         | 
    
        data/lib/autoproj/system.rb
    CHANGED
    
    | @@ -106,7 +106,6 @@ module Autoproj | |
| 106 106 | 
             
                def self.set_initial_env
         | 
| 107 107 | 
             
                    Autoproj.env_set 'RUBYOPT', "-rubygems"
         | 
| 108 108 | 
             
                    Autoproj.env_set 'GEM_HOME', Autoproj.gem_home
         | 
| 109 | 
            -
                    Autoproj.env_add_path 'GEM_PATH', Autoproj.gem_home
         | 
| 110 109 | 
             
                    Autoproj.env_set_path 'PATH', "#{Autoproj.gem_home}/bin", "/usr/local/bin", "/usr/bin", "/bin"
         | 
| 111 110 | 
             
                    Autoproj.env_set 'PKG_CONFIG_PATH'
         | 
| 112 111 | 
             
                    Autoproj.env_set 'RUBYLIB'
         | 
| @@ -136,7 +135,7 @@ module Autoproj | |
| 136 135 | 
             
                                Autoproj.message
         | 
| 137 136 | 
             
                                Autoproj.message "autodetected the shell to be #{shell_kind}, sourcing autoproj shell helpers"
         | 
| 138 137 | 
             
                                Autoproj.message "add \"Autoproj.shell_helpers = false\" in autoproj/init.rb to disable"
         | 
| 139 | 
            -
                                Autobuild. | 
| 138 | 
            +
                                Autobuild.env_source_file(shell_file)
         | 
| 140 139 | 
             
                            end
         | 
| 141 140 | 
             
                        end
         | 
| 142 141 | 
             
                    end
         | 
    
        data/lib/autoproj/version.rb
    CHANGED
    
    
| @@ -25,10 +25,12 @@ class TC_OSDependencies < Test::Unit::TestCase | |
| 25 25 | 
             
                def create_osdep(data)
         | 
| 26 26 | 
             
                    osdeps = OSDependencies.new(data)
         | 
| 27 27 | 
             
                    # Mock the package handlers
         | 
| 28 | 
            -
                    osdeps.os_package_handler = flexmock(PackageManagers::Manager.new | 
| 28 | 
            +
                    osdeps.os_package_handler = flexmock(PackageManagers::Manager.new)
         | 
| 29 | 
            +
                    osdeps.os_package_handler.should_receive('names').and_return(['apt-dpkg'])
         | 
| 29 30 | 
             
                    osdeps.package_handlers.clear
         | 
| 30 31 | 
             
                    osdeps.package_handlers['apt-dpkg'] = osdeps.os_package_handler
         | 
| 31 | 
            -
                    osdeps.package_handlers['gem'] = flexmock(PackageManagers::Manager.new | 
| 32 | 
            +
                    osdeps.package_handlers['gem'] = flexmock(PackageManagers::Manager.new)
         | 
| 33 | 
            +
                    osdeps.package_handlers['gem'].should_receive('names').and_return(['gem'])
         | 
| 32 34 | 
             
                    flexmock(osdeps)
         | 
| 33 35 | 
             
                end
         | 
| 34 36 |  | 
| @@ -105,13 +107,12 @@ class TC_OSDependencies < Test::Unit::TestCase | |
| 105 107 | 
             
                end
         | 
| 106 108 |  | 
| 107 109 | 
             
                def test_resolve_specific_os_name_and_version_fallback
         | 
| 108 | 
            -
                    data = { 'pkg' =>
         | 
| 109 | 
            -
             | 
| 110 | 
            -
             | 
| 111 | 
            -
             | 
| 112 | 
            -
             | 
| 113 | 
            -
             | 
| 114 | 
            -
                           }
         | 
| 110 | 
            +
                    data = { 'pkg' => {
         | 
| 111 | 
            +
                            'test' => {
         | 
| 112 | 
            +
                                'v1.1' => 'pkg1.1',
         | 
| 113 | 
            +
                                'default' => 'pkgdef'
         | 
| 114 | 
            +
                             }
         | 
| 115 | 
            +
                    } }
         | 
| 115 116 | 
             
                    osdeps = create_osdep(data)
         | 
| 116 117 |  | 
| 117 118 | 
             
                    expected = [[osdeps.os_package_handler, FOUND_PACKAGES, ['pkgdef']]]
         | 
| @@ -320,28 +321,6 @@ class TC_OSDependencies < Test::Unit::TestCase | |
| 320 321 | 
             
                    assert_equal expected, osdeps.resolve_package('pkg')
         | 
| 321 322 | 
             
                end
         | 
| 322 323 |  | 
| 323 | 
            -
                def test_specific_os_version_supersedes_nonspecific_one
         | 
| 324 | 
            -
                    data = { 'pkg' =>
         | 
| 325 | 
            -
                             {
         | 
| 326 | 
            -
                               'debian' => 'binary_package',
         | 
| 327 | 
            -
                               'test' => { 'gem' => 'gempkg' }
         | 
| 328 | 
            -
                             }
         | 
| 329 | 
            -
                           }
         | 
| 330 | 
            -
                    osdeps = create_osdep(data)
         | 
| 331 | 
            -
                    expected = [[osdeps.package_handlers['gem'], FOUND_PACKAGES, ['gempkg']]]
         | 
| 332 | 
            -
                    assert_equal expected, osdeps.resolve_package('pkg')
         | 
| 333 | 
            -
             | 
| 334 | 
            -
                    data = { 'pkg' =>
         | 
| 335 | 
            -
                             {
         | 
| 336 | 
            -
                               'default' => { 'gem' => 'gem_package' },
         | 
| 337 | 
            -
                               'test' => 'binary_package'
         | 
| 338 | 
            -
                             }
         | 
| 339 | 
            -
                           }
         | 
| 340 | 
            -
                    osdeps = create_osdep(data)
         | 
| 341 | 
            -
                    expected = [[osdeps.os_package_handler, FOUND_PACKAGES, ['binary_package']]]
         | 
| 342 | 
            -
                    assert_equal expected, osdeps.resolve_package('pkg')
         | 
| 343 | 
            -
                end
         | 
| 344 | 
            -
             | 
| 345 324 | 
             
                def test_availability_of
         | 
| 346 325 | 
             
                    osdeps = flexmock(OSDependencies.new)
         | 
| 347 326 | 
             
                    osdeps.should_receive(:resolve_package).with('pkg0').once.and_return(
         | 
    
        metadata
    CHANGED
    
    | @@ -1,107 +1,76 @@ | |
| 1 | 
            -
            --- !ruby/object:Gem::Specification | 
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: autoproj
         | 
| 3 | 
            -
            version: !ruby/object:Gem::Version | 
| 4 | 
            -
               | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 1.8.2.b7
         | 
| 5 5 | 
             
              prerelease: 6
         | 
| 6 | 
            -
              segments: 
         | 
| 7 | 
            -
              - 1
         | 
| 8 | 
            -
              - 8
         | 
| 9 | 
            -
              - 2
         | 
| 10 | 
            -
              - b
         | 
| 11 | 
            -
              - 6
         | 
| 12 | 
            -
              version: 1.8.2.b6
         | 
| 13 6 | 
             
            platform: ruby
         | 
| 14 | 
            -
            authors: | 
| 7 | 
            +
            authors:
         | 
| 15 8 | 
             
            - Rock Core Developers
         | 
| 16 9 | 
             
            autorequire: 
         | 
| 17 10 | 
             
            bindir: bin
         | 
| 18 11 | 
             
            cert_chain: []
         | 
| 19 | 
            -
             | 
| 20 | 
            -
             | 
| 21 | 
            -
             | 
| 22 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 12 | 
            +
            date: 2012-10-04 00:00:00.000000000 Z
         | 
| 13 | 
            +
            dependencies:
         | 
| 14 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 23 15 | 
             
              name: autobuild
         | 
| 24 | 
            -
               | 
| 25 | 
            -
              requirement: &id001 !ruby/object:Gem::Requirement 
         | 
| 16 | 
            +
              requirement: &17010120 !ruby/object:Gem::Requirement
         | 
| 26 17 | 
             
                none: false
         | 
| 27 | 
            -
                requirements: | 
| 28 | 
            -
                - -  | 
| 29 | 
            -
                  - !ruby/object:Gem::Version | 
| 30 | 
            -
                    hash: 3474568203
         | 
| 31 | 
            -
                    segments: 
         | 
| 32 | 
            -
                    - 1
         | 
| 33 | 
            -
                    - 6
         | 
| 34 | 
            -
                    - 0
         | 
| 35 | 
            -
                    - rc
         | 
| 36 | 
            -
                    - 1
         | 
| 18 | 
            +
                requirements:
         | 
| 19 | 
            +
                - - ! '>='
         | 
| 20 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 37 21 | 
             
                    version: 1.6.0.rc1
         | 
| 38 22 | 
             
              type: :runtime
         | 
| 39 | 
            -
              version_requirements: *id001
         | 
| 40 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 41 | 
            -
              name: utilrb
         | 
| 42 23 | 
             
              prerelease: false
         | 
| 43 | 
            -
               | 
| 24 | 
            +
              version_requirements: *17010120
         | 
| 25 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 26 | 
            +
              name: utilrb
         | 
| 27 | 
            +
              requirement: &17009160 !ruby/object:Gem::Requirement
         | 
| 44 28 | 
             
                none: false
         | 
| 45 | 
            -
                requirements: | 
| 46 | 
            -
                - -  | 
| 47 | 
            -
                  - !ruby/object:Gem::Version | 
| 48 | 
            -
                    hash: 15
         | 
| 49 | 
            -
                    segments: 
         | 
| 50 | 
            -
                    - 1
         | 
| 51 | 
            -
                    - 6
         | 
| 52 | 
            -
                    - 0
         | 
| 29 | 
            +
                requirements:
         | 
| 30 | 
            +
                - - ! '>='
         | 
| 31 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 53 32 | 
             
                    version: 1.6.0
         | 
| 54 33 | 
             
              type: :runtime
         | 
| 55 | 
            -
              version_requirements: *id002
         | 
| 56 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 57 | 
            -
              name: highline
         | 
| 58 34 | 
             
              prerelease: false
         | 
| 59 | 
            -
               | 
| 35 | 
            +
              version_requirements: *17009160
         | 
| 36 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 37 | 
            +
              name: highline
         | 
| 38 | 
            +
              requirement: &17008280 !ruby/object:Gem::Requirement
         | 
| 60 39 | 
             
                none: false
         | 
| 61 | 
            -
                requirements: | 
| 62 | 
            -
                - -  | 
| 63 | 
            -
                  - !ruby/object:Gem::Version | 
| 64 | 
            -
                    hash: 3
         | 
| 65 | 
            -
                    segments: 
         | 
| 66 | 
            -
                    - 1
         | 
| 67 | 
            -
                    - 5
         | 
| 68 | 
            -
                    - 0
         | 
| 40 | 
            +
                requirements:
         | 
| 41 | 
            +
                - - ! '>='
         | 
| 42 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 69 43 | 
             
                    version: 1.5.0
         | 
| 70 44 | 
             
              type: :runtime
         | 
| 71 | 
            -
              version_requirements: *id003
         | 
| 72 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 73 | 
            -
              name: rdoc
         | 
| 74 45 | 
             
              prerelease: false
         | 
| 75 | 
            -
               | 
| 46 | 
            +
              version_requirements: *17008280
         | 
| 47 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 48 | 
            +
              name: rdoc
         | 
| 49 | 
            +
              requirement: &17007580 !ruby/object:Gem::Requirement
         | 
| 76 50 | 
             
                none: false
         | 
| 77 | 
            -
                requirements: | 
| 51 | 
            +
                requirements:
         | 
| 78 52 | 
             
                - - ~>
         | 
| 79 | 
            -
                  - !ruby/object:Gem::Version | 
| 80 | 
            -
                     | 
| 81 | 
            -
                    segments: 
         | 
| 82 | 
            -
                    - 3
         | 
| 83 | 
            -
                    - 10
         | 
| 84 | 
            -
                    version: "3.10"
         | 
| 53 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            +
                    version: '3.10'
         | 
| 85 55 | 
             
              type: :development
         | 
| 86 | 
            -
              version_requirements: *id004
         | 
| 87 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 88 | 
            -
              name: hoe
         | 
| 89 56 | 
             
              prerelease: false
         | 
| 90 | 
            -
               | 
| 57 | 
            +
              version_requirements: *17007580
         | 
| 58 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 59 | 
            +
              name: hoe
         | 
| 60 | 
            +
              requirement: &17006800 !ruby/object:Gem::Requirement
         | 
| 91 61 | 
             
                none: false
         | 
| 92 | 
            -
                requirements: | 
| 62 | 
            +
                requirements:
         | 
| 93 63 | 
             
                - - ~>
         | 
| 94 | 
            -
                  - !ruby/object:Gem::Version | 
| 95 | 
            -
                     | 
| 96 | 
            -
                    segments: 
         | 
| 97 | 
            -
                    - 3
         | 
| 98 | 
            -
                    - 0
         | 
| 99 | 
            -
                    version: "3.0"
         | 
| 64 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 65 | 
            +
                    version: '3.0'
         | 
| 100 66 | 
             
              type: :development
         | 
| 101 | 
            -
               | 
| 102 | 
            -
             | 
| 67 | 
            +
              prerelease: false
         | 
| 68 | 
            +
              version_requirements: *17006800
         | 
| 69 | 
            +
            description: autoproj is a manager for sets of software packages. It allows the user
         | 
| 70 | 
            +
              to import and build packages from source, still using the underlying distribution's
         | 
| 71 | 
            +
              native package manager for software that is available on it.
         | 
| 103 72 | 
             
            email: rock-dev@dfki.de
         | 
| 104 | 
            -
            executables: | 
| 73 | 
            +
            executables:
         | 
| 105 74 | 
             
            - amake
         | 
| 106 75 | 
             
            - aup
         | 
| 107 76 | 
             
            - autolocate
         | 
| @@ -112,13 +81,12 @@ executables: | |
| 112 81 | 
             
            - autoproj_bootstrap
         | 
| 113 82 | 
             
            - autoproj_stress_test
         | 
| 114 83 | 
             
            extensions: []
         | 
| 115 | 
            -
             | 
| 116 | 
            -
            extra_rdoc_files: 
         | 
| 84 | 
            +
            extra_rdoc_files:
         | 
| 117 85 | 
             
            - History.txt
         | 
| 118 86 | 
             
            - Manifest.txt
         | 
| 119 87 | 
             
            - README.txt
         | 
| 120 88 | 
             
            - samples/autoproj/README.txt
         | 
| 121 | 
            -
            files: | 
| 89 | 
            +
            files:
         | 
| 122 90 | 
             
            - History.txt
         | 
| 123 91 | 
             
            - Manifest.txt
         | 
| 124 92 | 
             
            - README.txt
         | 
| @@ -157,49 +125,39 @@ files: | |
| 157 125 | 
             
            - test/data/test_manifest/autoproj/manifest
         | 
| 158 126 | 
             
            - test/test_debian.rb
         | 
| 159 127 | 
             
            - test/test_manifest.rb
         | 
| 128 | 
            +
            - test/test_package_manifest.rb
         | 
| 160 129 | 
             
            - test/test_os_dependencies.rb
         | 
| 161 130 | 
             
            - test/package_managers/test_gem.rb
         | 
| 162 | 
            -
            - test/test_package_manifest.rb
         | 
| 163 131 | 
             
            - .gemtest
         | 
| 164 132 | 
             
            homepage: http://rock-robotics.org/documentation/autoproj
         | 
| 165 133 | 
             
            licenses: []
         | 
| 166 | 
            -
             | 
| 167 134 | 
             
            post_install_message: 
         | 
| 168 | 
            -
            rdoc_options: | 
| 135 | 
            +
            rdoc_options:
         | 
| 169 136 | 
             
            - --main
         | 
| 170 137 | 
             
            - README.txt
         | 
| 171 | 
            -
            require_paths: | 
| 138 | 
            +
            require_paths:
         | 
| 172 139 | 
             
            - lib
         | 
| 173 | 
            -
            required_ruby_version: !ruby/object:Gem::Requirement | 
| 140 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 174 141 | 
             
              none: false
         | 
| 175 | 
            -
              requirements: | 
| 176 | 
            -
              - -  | 
| 177 | 
            -
                - !ruby/object:Gem::Version | 
| 178 | 
            -
                   | 
| 179 | 
            -
             | 
| 180 | 
            -
                  - 0
         | 
| 181 | 
            -
                  version: "0"
         | 
| 182 | 
            -
            required_rubygems_version: !ruby/object:Gem::Requirement 
         | 
| 142 | 
            +
              requirements:
         | 
| 143 | 
            +
              - - ! '>='
         | 
| 144 | 
            +
                - !ruby/object:Gem::Version
         | 
| 145 | 
            +
                  version: '0'
         | 
| 146 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 183 147 | 
             
              none: false
         | 
| 184 | 
            -
              requirements: | 
| 185 | 
            -
              - -  | 
| 186 | 
            -
                - !ruby/object:Gem::Version | 
| 187 | 
            -
                  hash: 25
         | 
| 188 | 
            -
                  segments: 
         | 
| 189 | 
            -
                  - 1
         | 
| 190 | 
            -
                  - 3
         | 
| 191 | 
            -
                  - 1
         | 
| 148 | 
            +
              requirements:
         | 
| 149 | 
            +
              - - ! '>'
         | 
| 150 | 
            +
                - !ruby/object:Gem::Version
         | 
| 192 151 | 
             
                  version: 1.3.1
         | 
| 193 152 | 
             
            requirements: []
         | 
| 194 | 
            -
             | 
| 195 153 | 
             
            rubyforge_project: autobuild
         | 
| 196 | 
            -
            rubygems_version: 1.8. | 
| 154 | 
            +
            rubygems_version: 1.8.11
         | 
| 197 155 | 
             
            signing_key: 
         | 
| 198 156 | 
             
            specification_version: 3
         | 
| 199 157 | 
             
            summary: Easy installation and management of sets of software packages
         | 
| 200 | 
            -
            test_files: | 
| 201 | 
            -
            - test/test_os_dependencies.rb
         | 
| 202 | 
            -
            - test/package_managers/test_gem.rb
         | 
| 158 | 
            +
            test_files:
         | 
| 203 159 | 
             
            - test/test_manifest.rb
         | 
| 204 | 
            -
            - test/test_debian.rb
         | 
| 205 160 | 
             
            - test/test_package_manifest.rb
         | 
| 161 | 
            +
            - test/test_os_dependencies.rb
         | 
| 162 | 
            +
            - test/test_debian.rb
         | 
| 163 | 
            +
            - test/package_managers/test_gem.rb
         |