Пример #1
0
 /**
  * Updates the repos commands associated to this ks data.
  *
  * @param repos the repos to update
  */
 public void setRepoInfos(Collection<RepoInfo> repos) {
   Set<KickstartCommand> repoCommands = new HashSet<KickstartCommand>();
   for (RepoInfo repo : repos) {
     KickstartCommand cmd = KickstartFactory.createKickstartCommand(this, "repo");
     repo.setArgumentsIn(cmd);
     repoCommands.add(cmd);
   }
   setRepos(repoCommands);
 }
Пример #2
0
 /** @return Returns the repos. */
 public Set<RepoInfo> getRepoInfos() {
   Set<KickstartCommand> repoCommands = getRepos();
   Set<RepoInfo> info = new HashSet<RepoInfo>();
   for (KickstartCommand cmd : repoCommands) {
     info.add(RepoInfo.parse(cmd));
   }
   return info;
 }