src/main/java/com/rm5248/debianpbuilder/DebianPbuilder.java
private boolean isDebianPackage( FilePath workspace, Launcher launcher, TaskListener listener ) throws IOException, InterruptedException{
        if( workspace == null ){
            return false;
        }
        Launcher.ProcStarter procStarter = launcher
            .launch()
            .pwd( workspace.child( getDebianDirLocation() ) )
            .cmdAsSingleString( "dpkg-parsechangelog --count 1" )
            .readStdout();
        int status = procStarter.join();

        if( status != 0 ){
            return false;
        }

        return true;
    }
/**
     * Basic check to see if we are actually trying to build a debian package.
     *
     * @param build
     * @param launcher
     * @param listener
     * @return
     */
Basic check to see if we are actually trying to build a debian package.
Basic check to see if we are actually trying to build a debian package .
private boolean isDebianPackage( FilePath workspace, Launcher launcher, TaskListener listener ) throws IOException, InterruptedException{
        if( workspace == null ){
            return false;
        }
        Launcher.ProcStarter procStarter = launcher
            .launch()
            .pwd( workspace.child( getDebianDirLocation() ) )
            .cmdAsSingleString( "dpkg-parsechangelog --count 1" )
            .readStdout();
        int status = procStarter.join();
        if( status != 0 ){
            return false;
        }
        return true;
    }
private boolean isDebianPackage ( FilePath workspace , Launcher launcher , TaskListener listener ) throws IOException , InterruptedException { if ( workspace == null ) { return false ; } Launcher . ProcStarter procStarter = launcher . launch ( ) . pwd ( workspace . child ( getDebianDirLocation ( ) ) ) . cmdAsSingleString ( "dpkg-parsechangelog --count 1" ) . readStdout ( ) ; int status = procStarter . join ( ) ; if ( status != 0 ) { return false ; } return true ; }
Basic check to see if we are actually trying to build a debian package.
Basic check to see if we are actually trying to build a debian package .