Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reinitialize the target to sync the libzypp repomanager #31

Merged
merged 1 commit into from Nov 6, 2013

Conversation

lslezak
Copy link
Member

@lslezak lslezak commented Nov 6, 2013

so the online repositories are correctly written during update (bnc#847659)

  • 3.0.8

so the online repositories are correctly written during update (bnc#847659)

- 3.0.8
# reload the target to sync the removed repositories with libzypp repomanager
Pkg.TargetFinish
Pkg.TargetInitialize("/mnt")

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does restarting the Target also reinitialize the RepoManager in pkg-bindings? (libzypp wise they are independent).

Now I see; via SetTarget -> RepoManagerUpdateTarget...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the repomanager is recreated, TargetFinish sets empty target dir, setting /mnt is then recognized as a change which trigger reinitialization, see https://github.com/yast/yast-pkg-bindings/blob/openSUSE-13_1/src/PkgFunctions.cc#L434

@jreidinger
Copy link
Member

no objection from my side

lslezak added a commit that referenced this pull request Nov 6, 2013
reinitialize the target to sync the libzypp repomanager
@lslezak lslezak merged commit c5ca82d into openSUSE-13_1 Nov 6, 2013
@lslezak lslezak deleted the repo_sync branch November 6, 2013 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants