Subversion Repositories DevTools

Rev

Rev 868 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 868 Rev 874
Line 354... Line 354...
354
   *     where pl.rtag_id=<mBaseline> and pv.build_type='A' and pv.dlocked='A'
354
   *     where pl.rtag_id=<mBaseline> and pv.build_type='A' and pv.dlocked='A'
355
   *     and pv.pv_id = pl.pv_id and ar.rtag_id=pl.rtag_id and ar.pv_id=pl.pv_id
355
   *     and pv.pv_id = pl.pv_id and ar.rtag_id=pl.rtag_id and ar.pv_id=pl.pv_id
356
   *     order by pl.pv_id;
356
   *     order by pl.pv_id;
357
   *  8 get released package info
357
   *  8 get released package info
358
   *     select rc.pv_id, p.pkg_id, p.pkg_name, pv.pkg_version, pv.v_ext, pv.pkg_label, pv.src_path, pv.ripple_field
358
   *     select rc.pv_id, p.pkg_id, p.pkg_name, pv.pkg_version, pv.v_ext, pv.pkg_label, pv.src_path, pv.ripple_field
-
 
359
   *     pv.major_limit, pv.minor_limit, pv.patch_limit, pv.build_number_limit
359
   *     from release_content rc, package_versions pv, packages p
360
   *     from release_content rc, package_versions pv, packages p
360
   *     where rc.rtag_id=<mBaseline>
361
   *     where rc.rtag_id=<mBaseline>
361
   *     and pv.pv_id = rc.pv_id and p.pkg_id = pv.pkg_id
362
   *     and pv.pv_id = rc.pv_id and p.pkg_id = pv.pkg_id
362
   *     order by rc.pv_id;
363
   *     order by rc.pv_id;
363
   *  9 get released package dependency info
364
   *  9 get released package dependency info
Line 1850... Line 1851...
1850
          rset7.close();
1851
          rset7.close();
1851
          stmt7.close();
1852
          stmt7.close();
1852
          
1853
          
1853
          // get released package info
1854
          // get released package info
1854
          CallableStatement stmt8 = mConnection.prepareCall(
1855
          CallableStatement stmt8 = mConnection.prepareCall(
1855
          "select rc.pv_id, p.pkg_id, p.pkg_name, pv.pkg_version, pv.v_ext, pv.pkg_label, pv.src_path, pv.ripple_field " +
1856
          "select rc.pv_id, p.pkg_id, p.pkg_name, pv.pkg_version, pv.v_ext, pv.pkg_label, pv.src_path, pv.ripple_field, " +
-
 
1857
          "pv.major_limit, pv.minor_limit, pv.patch_limit, pv.build_number_limit " +
1856
          "from release_manager.release_content rc, release_manager.package_versions pv, release_manager.packages p " +
1858
          "from release_manager.release_content rc, release_manager.package_versions pv, release_manager.packages p " +
1857
          "where rc.rtag_id=" + baseline +
1859
          "where rc.rtag_id=" + baseline +
1858
          " and pv.pv_id = rc.pv_id and p.pkg_id = pv.pkg_id " +
1860
          " and pv.pv_id = rc.pv_id and p.pkg_id = pv.pkg_id " +
1859
          "order by rc.pv_id"
1861
          "order by rc.pv_id"
1860
          );
1862
          );
Line 1928... Line 1930...
1928
            else if ( ripple_field.length() == 0 )
1930
            else if ( ripple_field.length() == 0 )
1929
            {
1931
            {
1930
              ripple_field = "x";
1932
              ripple_field = "x";
1931
            }
1933
            }
1932
            
1934
            
-
 
1935
            int major_limit = rset8.getInt("major_limit");
-
 
1936
            
-
 
1937
            if ( rset8.wasNull() )
-
 
1938
            {
-
 
1939
              major_limit = 0;
-
 
1940
            }
-
 
1941
            
-
 
1942
            int minor_limit = rset8.getInt("minor_limit");
-
 
1943
            
-
 
1944
            if ( rset8.wasNull() )
-
 
1945
            {
-
 
1946
              minor_limit = 0;
-
 
1947
            }
-
 
1948
 
-
 
1949
            int patch_limit = rset8.getInt("patch_limit");
-
 
1950
            
-
 
1951
            if ( rset8.wasNull() )
-
 
1952
            {
-
 
1953
              patch_limit = 0;
-
 
1954
            }
-
 
1955
 
-
 
1956
            int build_number_limit = rset8.getInt("build_number_limit");
-
 
1957
            
-
 
1958
            if ( rset8.wasNull() )
-
 
1959
            {
-
 
1960
              build_number_limit = 0;
-
 
1961
            }
-
 
1962
 
1933
            Package p = new Package(pv_id, pkg_name, pkg_version, v_ext, pkg_name + v_ext, pkg_label, src_path, ripple_field.charAt(0));
1963
            Package p = new Package(pv_id, pkg_name, pkg_version, v_ext, pkg_name + v_ext, pkg_label, src_path, ripple_field.charAt(0));
-
 
1964
            p.mMajorLimit = major_limit;
-
 
1965
            p.mMinorLimit = minor_limit;
-
 
1966
            p.mPatchLimit = patch_limit;
-
 
1967
            p.mBuildLimit = build_number_limit;
1934
            p.mPid = pkg_id;
1968
            p.mPid = pkg_id;
1935
            Integer ipv_id = new Integer(pv_id);
1969
            Integer ipv_id = new Integer(pv_id);
1936
            rippleEngine.mReleasedPvIDCollection.add(ipv_id);
1970
            rippleEngine.mReleasedPvIDCollection.add(ipv_id);
1937
            Package plannedPackage = findPackage(p.mAlias, packageCollection);
1971
            Package plannedPackage = findPackage(p.mAlias, packageCollection);
1938
            
1972