Skip to content

Commit

Permalink
Update the priority for the loaded packages (bsc#498266)
Browse files Browse the repository at this point in the history
... when starting the repository manager from the package manager

- 3.2.4
  • Loading branch information
lslezak committed Oct 17, 2016
1 parent 326b681 commit 0fe7ffc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
7 changes: 7 additions & 0 deletions package/yast2-packager.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Oct 17 07:41:00 UTC 2016 - lslezak@suse.cz

- Update the priority for the loaded packages when starting the
repository manager from the package manager (bsc#498266)
- 3.2.4

-------------------------------------------------------------------
Fri Oct 14 11:03:49 UTC 2016 - jreidinger@suse.com

Expand Down
10 changes: 5 additions & 5 deletions package/yast2-packager.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-packager
Version: 3.2.3
Version: 3.2.4
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand All @@ -38,14 +38,14 @@ BuildRequires: yast2 >= 3.1.187
# needed for icon for desktop file, it is verified at the end of build
BuildRequires: yast2_theme

# Pkg::UrlSchemeIs*()
BuildRequires: yast2-pkg-bindings >= 3.2.0
# Pkg::SourceSetPriority()
BuildRequires: yast2-pkg-bindings >= 3.2.1

# Newly added RPM
Requires: yast2-country-data >= 2.16.3

# Pkg::UrlSchemeIs*()
Requires: yast2-pkg-bindings >= 3.2.0
# Pkg::SourceSetPriority()
Requires: yast2-pkg-bindings >= 3.2.1

# Packages::Repository and Packages::Product classes
Requires: yast2 >= 3.1.187
Expand Down
3 changes: 3 additions & 0 deletions src/clients/repositories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,9 @@ def SummaryDialog
Ops.set(sourceState, "priority", new_priority)
Ops.set(@sourceStatesOut, global_current, sourceState)

# update the priority for the already loaded packages
Pkg.SourceSetPriority(sourceState["SrcId"], new_priority)

# do not refresh the item in the table
current = -1
else
Expand Down

0 comments on commit 0fe7ffc

Please sign in to comment.