File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
src/com/inet/gradle/setup/unix/deb Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments