Skip to content

Commit

Permalink
fixed saving service to installed system (bnc#877053)
Browse files Browse the repository at this point in the history
- 3.1.10
  • Loading branch information
lslezak committed May 9, 2014
1 parent f9c2a82 commit b8408cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions package/yast2-pkg-bindings.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 9 15:21:18 UTC 2014 - lslezak@suse.cz

- fixed saving service to installed system (bnc#877053)
- 3.1.10

-------------------------------------------------------------------
Tue Apr 22 12:40:55 UTC 2014 - lslezak@suse.cz

Expand Down
8 changes: 4 additions & 4 deletions src/ServiceManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,15 @@ void ServiceManager::SavePkgService(PkgService &s_known, zypp::RepoManager &repo

std::string orig_alias(s_known.origAlias());

y2internal("orig_alias: %s", orig_alias.c_str());
y2debug("orig_alias: %s", orig_alias.c_str());

// the old alias is empty for new services
if (orig_alias.empty())
// already saved?
if (s_stored == zypp::ServiceInfo::noService)
{
y2milestone("Adding new service %s", alias.c_str());
// add the service
repomgr.addService(s_known);
// set the old alias to properly save it next time
// set the old alias
s_known.setOrigAlias(alias);
}
else
Expand Down

0 comments on commit b8408cd

Please sign in to comment.