Skip to content

Commit 535bbc9

Browse files
committed
Add options to lintian process
The option allows to define the command line arguments for the optional lintian process.
1 parent 82dbe89 commit 535bbc9

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/com/inet/gradle/setup/unix/deb/Deb.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public class Deb extends Unix {
3434

3535
private boolean checkPackage = false;
3636

37+
private String lintianOptions = "";
38+
3739
private String maintainerEmail;
3840

3941
private String changes;
@@ -85,6 +87,24 @@ public void setCheckPackage( boolean checkPackage ) {
8587
this.checkPackage = checkPackage;
8688
}
8789

90+
/**
91+
* Return the options used for the 'lintian' process.
92+
* They will only have impact when checkPackages is enabled.
93+
* @return the lintianOptions
94+
*/
95+
public String getLintianOptions() {
96+
return lintianOptions;
97+
}
98+
99+
/**
100+
* Set the options used for the 'lintian' process.
101+
* They will only have impact when checkPackages is enabled.
102+
* @param lintianOptions the lintianOptions to set
103+
*/
104+
public void setLintianOptions( String lintianOptions ) {
105+
this.lintianOptions = lintianOptions;
106+
}
107+
88108
public String getMaintainerEmail() {
89109
return maintainerEmail;
90110
}

src/com/inet/gradle/setup/unix/deb/DebBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ private void checkDebianPackage() {
459459
if( task.shouldCheckPackage() ) {
460460
ArrayList<String> command = new ArrayList<>();
461461
command.add( "lintian" );
462-
// command.add( "-d" );
462+
command.add( task.getLintianOptions() );
463463
command.add( task.getSetupFile().getPath() );
464464
exec( command );
465465
}

0 commit comments

Comments
 (0)