Subversion Repositories DevTools

Rev

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

Rev 7079 Rev 7093
Line 385... Line 385...
385
     */
385
     */
386
    public boolean mIsProcessed = false;
386
    public boolean mIsProcessed = false;
387
 
387
 
388
    /**
388
    /**
389
     * Constructor
389
     * Constructor
390
     * Used to create planned packages. In these packages the change_type is significant
390
     * Used to create planned packages (WIP). In these packages the change_type is significant
391
     * 
391
     * 
392
     * @param pkg_id	   Package Name Identifier
392
     * @param pkg_id	   Package Name Identifier
393
     * @param pv_id        Package Version Id
393
     * @param pv_id        Package Version Id
394
     * @param pkg_name     Package Name
394
     * @param pkg_name     Package Name
395
     * @param pkg_version  Package Version
395
     * @param pkg_version  Package Version
Line 399... Line 399...
399
     * @param ripple_field Ripple Field
399
     * @param ripple_field Ripple Field
400
     * @param change_type  Change Type
400
     * @param change_type  Change Type
401
     */
401
     */
402
    public Package(int pkg_id, int pv_id, String pkg_name, String pkg_version, String v_ext, String alias, String pkg_vcs_tag, char ripple_field, char change_type)
402
    public Package(int pkg_id, int pv_id, String pkg_name, String pkg_version, String v_ext, String alias, String pkg_vcs_tag, char ripple_field, char change_type)
403
    {
403
    {
404
        mLogger.debug("Package 1: pv_id " + pv_id + " pkg_name " + pkg_name + " v_ext " + v_ext + " alias " + alias
404
        mLogger.error("Package 1: pv_id {} pkg_name {} v_ext {} alias {} pkg_vcs_tag {} change_type {}", pv_id, pkg_name,v_ext,alias, pkg_vcs_tag, change_type);
405
                + " pkg_vcs_tag " + pkg_vcs_tag + " change_type " + change_type);
-
 
406
        mId = pv_id;
405
        mId = pv_id;
407
        mName = pkg_name;
406
        mName = pkg_name;
408
        mPid = pkg_id;
407
        mPid = pkg_id;
409
        mVersion = "0.0.0000";
408
        mVersion = "0.0.0000";
410
        mExtension = v_ext;
409
        mExtension = v_ext;
Line 790... Line 789...
790
     */
789
     */
791
    
790
    
792
    int applyPV(ReleaseManager releaseManager) throws Exception
791
    int applyPV(ReleaseManager releaseManager) throws Exception
793
    {
792
    {
794
        String logInfo = "applyPV," + mName;
793
        String logInfo = "applyPV," + mName;
795
        mLogger.debug("applyPV on Package " + mName);
794
        mLogger.error("applyPV on Package {}", mName);
796
        
795
        
797
        //
796
        //
798
        //  This method used to actually perform the version change
797
        //  This method used to actually perform the version change
799
        //  Now it just calculates the potential value
798
        //  Now it just calculates the potential value
800
        //  Must not alter mVersion as it will be used if the package is not selected to be built,
799
        //  Must not alter mVersion as it will be used if the package is not selected to be built,
Line 814... Line 813...
814
        if (!mDirectlyPlanned && mIndirectlyPlanned && !mArchivalExistence && mForcedRippleInstruction == 0)
813
        if (!mDirectlyPlanned && mIndirectlyPlanned && !mArchivalExistence && mForcedRippleInstruction == 0)
815
        {
814
        {
816
            // the package has an mIndirectlyPlanned flag set true in daemon
815
            // the package has an mIndirectlyPlanned flag set true in daemon
817
            // mode because the package does not exist in an archive
816
            // mode because the package does not exist in an archive
818
            // do not apply a different package version
817
            // do not apply a different package version
819
            mLogger.info("applyPV. Rebuild Package {}", mName);
818
            mLogger.error("applyPV. Rebuild Package {}", mName);
820
            mLogger.info("applyPv returned 0");
819
            mLogger.info("applyPv returned 0");
821
            return 0;
820
            return 0;
822
        }
821
        }
823
 
822
 
824
        // override - no longer doing a rebuild - version number change from this point on
823
        // override - no longer doing a rebuild - version number change from this point on
Line 839... Line 838...
839
        // Detect invalid change type
838
        // Detect invalid change type
840
        // Flagged when package instance is created
839
        // Flagged when package instance is created
841
        //
840
        //
842
        if (mChangeType.mUnknown)
841
        if (mChangeType.mUnknown)
843
        {
842
        {
844
            mLogger.info("Package Version specified on Package {} New Version: {}", mName, mVersion);
843
            mLogger.error("Package Version unknown on Package {} Version: {}", mName, mVersion);
845
            mLogger.info("applyPv returned 3");
844
            mLogger.info("applyPv returned 3");
846
            return 3;
845
            return 3;
847
        }
846
        }
848
 
847
 
849
        // If we are not calculating the new package version because the user
848
        // If we are not calculating the new package version because the user
Line 851... Line 850...
851
        if (mChangeType.mFixed)
850
        if (mChangeType.mFixed)
852
        {
851
        {
853
            // mVersion is already setup
852
            // mVersion is already setup
854
 
853
 
855
            mNextVersion = mFixedVersion;
854
            mNextVersion = mFixedVersion;
856
            mLogger.info("Package Version specified on Package {} New Version: {}", mName,  mVersion);
855
            mLogger.error("Package Version specified on Package {} New Version: {}", mName,  mNextVersion);
857
            mLogger.info("applyPv returned 0");
856
            mLogger.info("applyPv returned 0");
858
            return 0;
857
            return 0;
859
        }
858
        }
860
 
859
 
861
        // We need to calculate the new version number
860
        // We need to calculate the new version number