// agent string.
// The target could be not initialized, and then this information
// is not available.
- Target_Ptr target;
- // FIXME this has to go away as soon as the target
- // does not throw when not initialized.
- try {
- target = zypp::getZYpp()->target();
- }
- catch ( const Exception &e )
- {
- // nothing to do
- }
+ Target_Ptr target = zypp::getZYpp()->getTarget();
static const std::string _value(
str::form(
// agent string.
// The target could be not initialized, and then this information
// is not available.
- Target_Ptr target;
- // FIXME this has to go away as soon as the target
- // does not throw when not initialized.
- try {
- target = zypp::getZYpp()->target();
- }
- catch ( const Exception &e )
- {
- // nothing to do
- }
+ Target_Ptr target = zypp::getZYpp()->getTarget();
static const std::string _value(
str::trim( str::form(
// agent string.
// The target could be not initialized, and then this information
// is not available.
- Target_Ptr target;
- // FIXME this has to go away as soon as the target
- // does not throw when not initialized.
- try {
- target = zypp::getZYpp()->target();
- }
- catch ( const Exception &e )
- {
- // nothing to do
- }
+ Target_Ptr target = zypp::getZYpp()->getTarget();
static const std::string _value(
str::form(
// agent string.
// The target could be not initialized, and then this information
// is not available.
- Target_Ptr target;
- // FIXME this has to go away as soon as the target
- // does not throw when not initialized.
- try {
- target = zypp::getZYpp()->target();
- }
- catch ( const Exception &e )
- {
- // nothing to do
- }
+ Target_Ptr target = zypp::getZYpp()->getTarget();
static const std::string _value(
str::trim( str::form(
// agent string.
// The target could be not initialized, and then this information
// is not available.
- Target_Ptr target;
- // FIXME this has to go away as soon as the target
- // does not throw when not initialized.
- try {
- target = zypp::getZYpp()->target();
- }
- catch ( const Exception &e )
- {
- // nothing to do
- }
+ Target_Ptr target = zypp::getZYpp()->getTarget();
static const std::string _value(
str::trim( str::form(
// agent string.
// The target could be not initialized, and then this information
// is not available.
- Target_Ptr target;
- // FIXME this has to go away as soon as the target
- // does not throw when not initialized.
- try {
- target = zypp::getZYpp()->target();
- }
- catch ( const Exception &e )
- {
- // nothing to do
- }
-
+ Target_Ptr target = zypp::getZYpp()->getTarget();
+
static const std::string _value(
str::form(
"ZYpp %s (curl %s) %s"