From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/ricci/modules cluster/ClusterConf.h rpm/ ...
Date: 18 Sep 2007 20:30:59 -0000 [thread overview]
Message-ID: <20070918203059.8678.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-09-18 20:30:58
Modified files:
ricci/modules/cluster: ClusterConf.h
ricci/modules/rpm: PackageHandler.cpp RpmModule.cpp
Log message:
Fix a couple of compile-time errors
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterConf.h.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/rpm/PackageHandler.cpp.diff?cvsroot=cluster&r1=1.16&r2=1.17
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/rpm/RpmModule.cpp.diff?cvsroot=cluster&r1=1.5&r2=1.6
--- conga/ricci/modules/cluster/ClusterConf.h 2007/09/18 20:17:16 1.6
+++ conga/ricci/modules/cluster/ClusterConf.h 2007/09/18 20:30:58 1.7
@@ -1,5 +1,5 @@
/*
-** Copyright Red Hat, Inc. 2005-2007
+** Copyright (C) Red Hat, Inc. 2005-2007
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License version 2 as
--- conga/ricci/modules/rpm/PackageHandler.cpp 2007/09/11 18:59:42 1.16
+++ conga/ricci/modules/rpm/PackageHandler.cpp 2007/09/18 20:30:58 1.17
@@ -610,9 +610,10 @@
String name(iter->name);
map<String, PackageSet>::iterator set_iter = h_pre.sets().find(name);
- if (set_iter == h_pre.sets().end())
- throw String("packages of set ") + name + " present neither locally nor in repository";
- else {
+ if (set_iter == h_pre.sets().end()) {
+ throw String("packages of set ") + name
+ + " present neither locally nor in repository";
+ } else {
PackageSet& p_set = set_iter->second;
if (p_set.installed) {
// already installed
@@ -625,9 +626,10 @@
name_iter++)
{
rpms.push_back(*name_iter);
- } else {
- throw String("packages of set ") + name + " are not present in any available repository";
}
+ } else {
+ throw String("packages of set ") + name +
+ " are not present in any available repository";
}
}
}
@@ -635,9 +637,9 @@
// not installed
if (p_set.in_repo) {
for (list<String>::const_iterator
- name_iter = p_set.packages.begin() ;
- name_iter != p_set.packages.end() ;
- name_iter++)
+ name_iter = p_set.packages.begin() ;
+ name_iter != p_set.packages.end() ;
+ name_iter++)
{
rpms.push_back(*name_iter);
}
--- conga/ricci/modules/rpm/RpmModule.cpp 2007/09/11 18:59:42 1.5
+++ conga/ricci/modules/rpm/RpmModule.cpp 2007/09/18 20:30:58 1.6
@@ -108,8 +108,9 @@
}
}
}
+ PackageHandler::install(rpms, sets, upgrade);
+ }
- PackageHandler::install(rpms, sets, upgrade);
return VarMap();
}
reply other threads:[~2007-09-18 20:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070918203059.8678.qmail@sourceware.org \
--to=rmccabe@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.