fixed fedora requests and removed debug print
This commit is contained in:
parent
b1bdc05ae5
commit
954e0d65dd
@ -47,9 +47,6 @@ public class Main {
|
|||||||
String distribution = ArgParse.getDistribution();
|
String distribution = ArgParse.getDistribution();
|
||||||
distribution = processDistribution(distribution);
|
distribution = processDistribution(distribution);
|
||||||
|
|
||||||
System.out.println(packet);
|
|
||||||
System.out.println(distribution);
|
|
||||||
|
|
||||||
// the list of packages we will show later
|
// the list of packages we will show later
|
||||||
List<SearchedPackage> packets = new ArrayList<>();
|
List<SearchedPackage> packets = new ArrayList<>();
|
||||||
|
|
||||||
@ -73,8 +70,9 @@ public class Main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int i = packets.size(); i-- > 0; ) {
|
for (int i = packets.size(); i-- > 0; ) {
|
||||||
System.out.printf("%s - %s/%s %s%n\t%s%n",
|
System.out.printf("%s - %s/%s/%s %s%n\t%s%n",
|
||||||
i,
|
i,
|
||||||
|
packets.get(i).getDistribution(),
|
||||||
packets.get(i).getRepo(),
|
packets.get(i).getRepo(),
|
||||||
packets.get(i).getName(),
|
packets.get(i).getName(),
|
||||||
packets.get(i).getVersion(),
|
packets.get(i).getVersion(),
|
||||||
|
@ -6,6 +6,7 @@ import java.util.concurrent.Future;
|
|||||||
|
|
||||||
import fr.packageviewer.distribution.ArchDistribution;
|
import fr.packageviewer.distribution.ArchDistribution;
|
||||||
import fr.packageviewer.distribution.Distribution;
|
import fr.packageviewer.distribution.Distribution;
|
||||||
|
import fr.packageviewer.distribution.FedoraDistribution;
|
||||||
import fr.packageviewer.pack.SearchedPackage;
|
import fr.packageviewer.pack.SearchedPackage;
|
||||||
|
|
||||||
public class Searcher {
|
public class Searcher {
|
||||||
@ -60,7 +61,7 @@ public class Searcher {
|
|||||||
*/
|
*/
|
||||||
public static List<SearchedPackage> searchForFedora(String packet) {
|
public static List<SearchedPackage> searchForFedora(String packet) {
|
||||||
// init distribution to search in it
|
// init distribution to search in it
|
||||||
Distribution fedora = new ArchDistribution();
|
Distribution fedora = new FedoraDistribution();
|
||||||
// search for the package in the distribution
|
// search for the package in the distribution
|
||||||
Future<List<SearchedPackage>> packages = fedora.searchPackage(packet);
|
Future<List<SearchedPackage>> packages = fedora.searchPackage(packet);
|
||||||
// init the list of packages that will be returned
|
// init the list of packages that will be returned
|
||||||
|
Loading…
Reference in New Issue
Block a user