aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Guzman2013-12-12 16:28:42 (EST)
committerNeil Guzman2013-12-12 16:31:06 (EST)
commitde62d5de57b6c91601e654dc3eb5be01bc4dd4d8 (patch)
tree41d9ffaeb8e5042cd98669dbe522d46566f46cb5
parent9975ba870fbfe972a47a9203c3230ef2faf47893 (diff)
downloadorg.eclipse.linuxtools-de62d5de57b6c91601e654dc3eb5be01bc4dd4d8.zip
org.eclipse.linuxtools-de62d5de57b6c91601e654dc3eb5be01bc4dd4d8.tar.gz
org.eclipse.linuxtools-de62d5de57b6c91601e654dc3eb5be01bc4dd4d8.tar.bz2
RPM: createrepo small fix with creatorrefs/changes/33/19733/2
Deltas enabled disables --workers and --changelog-limit command switches. Change-Id: Ifaaf310be389ce8bc51746282fba695a972675bc Signed-off-by: Neil Guzman <nguzman@redhat.com> Reviewed-on: https://git.eclipse.org/r/19733
-rw-r--r--rpm/org.eclipse.linuxtools.rpm.createrepo/src/org/eclipse/linuxtools/internal/rpm/createrepo/CreaterepoCommandCreator.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/rpm/org.eclipse.linuxtools.rpm.createrepo/src/org/eclipse/linuxtools/internal/rpm/createrepo/CreaterepoCommandCreator.java b/rpm/org.eclipse.linuxtools.rpm.createrepo/src/org/eclipse/linuxtools/internal/rpm/createrepo/CreaterepoCommandCreator.java
index 71a29df..89d0822 100644
--- a/rpm/org.eclipse.linuxtools.rpm.createrepo/src/org/eclipse/linuxtools/internal/rpm/createrepo/CreaterepoCommandCreator.java
+++ b/rpm/org.eclipse.linuxtools.rpm.createrepo/src/org/eclipse/linuxtools/internal/rpm/createrepo/CreaterepoCommandCreator.java
@@ -190,15 +190,14 @@ public class CreaterepoCommandCreator {
commands.add(arg);
commands.add(Long.toString(value));
}
- } else {
- for (String arg : INT_COMMANDS) {
- // if project preferences are enabled, use the preferences from there
- int value = project ? projectPreferences.getInt(arg, preferenceStore.getDefaultInt(arg))
- : preferenceStore.getInt(arg);
- arg = ICreaterepoConstants.DASH.concat(arg);
- commands.add(arg);
- commands.add(Integer.toString(value));
- }
+ }
+ for (String arg : INT_COMMANDS) {
+ // if project preferences are enabled, use the preferences from there
+ int value = project ? projectPreferences.getInt(arg, preferenceStore.getDefaultInt(arg))
+ : preferenceStore.getInt(arg);
+ arg = ICreaterepoConstants.DASH.concat(arg);
+ commands.add(arg);
+ commands.add(Integer.toString(value));
}
return commands;
}