Subversion Repositories DevTools

Rev

Rev 7049 | Rev 7051 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7049 Rev 7050
Line 530... Line 530...
530
            mRippleField.setBuild();
530
            mRippleField.setBuild();
531
        }
531
        }
532
 
532
 
533
        try
533
        try
534
        {
534
        {
535
            mId = applyPV(rm, 0);
535
            mId = applyPV(rm);
536
        } catch (Exception e)
536
        } catch (Exception e)
537
        {
537
        {
538
        }
538
        }
539
    }
539
    }
540
 
540
 
Line 750... Line 750...
750
      
750
      
751
    }
751
    }
752
 
752
 
753
    /**
753
    /**
754
     * Applies the required version number change. Will calculate mNextVersion
754
     * Applies the required version number change. Will calculate mNextVersion
-
 
755
     * while not changing mVersion.
755
     * 
756
     * 
756
     * @param releaseManager    Release Manager instance to work against
757
     * @param releaseManager    Release Manager instance to work against
757
     * @param rtag_id           Release Identifier
-
 
758
     * 
758
     * 
759
     * @return 0 : success
759
     * @return 0 : success
760
     *         1 : cannot work with non standard versioning
760
     *         1 : cannot work with non standard versioning
761
     *         2 : ripple field limitations prevent a ripple build
761
     *         2 : ripple field limitations prevent a ripple build
762
     *         3 : Invalid Change Type
762
     *         3 : Invalid Change Type
763
     * @exception Exception
763
     * @exception Exception
764
     */
764
     */
765
//TODO - Remove the rtag_id parameter. Its not needed, although its badly used.    
-
 
-
 
765
    
766
    int applyPV(ReleaseManager releaseManager, int rtag_id) throws Exception
766
    int applyPV(ReleaseManager releaseManager) throws Exception
767
    {
767
    {
768
        String logInfo = "applyPV," + mName;
768
        String logInfo = "applyPV," + mName;
769
        mLogger.debug("applyPV on Package " + mName);
769
        mLogger.debug("applyPV on Package " + mName);
770
        
770
        
771
        //
771
        //
Line 978... Line 978...
978
            {
978
            {
979
                mVersion += "0";
979
                mVersion += "0";
980
            }
980
            }
981
 
981
 
982
            mVersion += String.valueOf(patch.value);
982
            mVersion += String.valueOf(patch.value);
983
        } while (exists(releaseManager, rtag_id));
983
        } while (exists(releaseManager));
984
 
984
 
985
        logInfo += ", Next Version:" + mVersion;
985
        logInfo += ", Next Version:" + mVersion;
986
        mLogger.error(logInfo);
986
        mLogger.error(logInfo);
987
        mLogger.info("applyPv returned 0");
987
        mLogger.info("applyPv returned 0");
988
        mNextVersion = mVersion;
988
        mNextVersion = mVersion;
Line 1130... Line 1130...
1130
 
1130
 
1131
    /**
1131
    /**
1132
     * Check if a specified Version of the package exists in dpkg_archive or the Release Manager Database
1132
     * Check if a specified Version of the package exists in dpkg_archive or the Release Manager Database
1133
     * 
1133
     * 
1134
     * @param releaseManager Release Manager Instance
1134
     * @param releaseManager Release Manager Instance
1135
     * @param rtag_id        Release Tag Identifier
-
 
1136
     * 
1135
     * 
1137
     * @return True if the Package Version exists within the Release Manager Database
1136
     * @return True if the Package Version exists within the Release Manager Database
1138
     * @exception Exception
1137
     * @exception Exception
1139
     */
1138
     */
1140
    private boolean exists(ReleaseManager releaseManager, int rtag_id) throws Exception
1139
    private boolean exists(ReleaseManager releaseManager) throws Exception
1141
    {
1140
    {
1142
        mLogger.debug("exists on Package " + mName + " version " + mVersion + " extension " + mExtension);
1141
        mLogger.debug("exists on Package " + mName + " version " + mVersion + " extension " + mExtension);
1143
        boolean retVal = false;
1142
        boolean retVal = false;
1144
 
1143
 
1145
        if (!releaseManager.mUseDatabase)
1144
        if (!releaseManager.mUseDatabase)