Skip to content

Commit

Permalink
Merge pull request #181 from yast/service_fix_sp6
Browse files Browse the repository at this point in the history
[SLE-15-SP6] Pkg.SourceEditSet() - Allow setting the service name (bsc#1214135)
  • Loading branch information
lslezak authored Sep 20, 2023
2 parents a600e0d + 29ac0f3 commit 0277e93
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/yast2-pkg-bindings-devel-doc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-pkg-bindings-devel-doc
Version: 4.6.3
Version: 4.6.4
Release: 0
Summary: YaST2 - Documentation for yast2-pkg-bindings package
License: GPL-2.0-only
Expand Down
7 changes: 7 additions & 0 deletions package/yast2-pkg-bindings.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Sep 20 08:57:18 UTC 2023 - Ladislav Slezák <[email protected]>

- Pkg.SourceEditSet() - Allow setting the repository service name
(related to bsc#1214135)
- 4.6.4

-------------------------------------------------------------------
Wed Sep 13 15:09:36 UTC 2023 - Ladislav Slezák <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-pkg-bindings.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-pkg-bindings
Version: 4.6.3
Version: 4.6.4
Release: 0
Summary: YaST2 - Package Manager Access
License: GPL-2.0-only
Expand Down
7 changes: 7 additions & 0 deletions src/Source_Set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@ PkgFunctions::SourceEditSet (const YCPList& states)
y2debug("set keeppackages: %d", keeppackages);
repo->repoInfo().setKeepPackages( keeppackages );
}

if( !descr->value(YCPString("service")).isNull() && descr->value(YCPString("service"))->isString())
{
string service = descr->value(YCPString("service"))->asString()->value();
y2debug("set service: %s", service.c_str());
repo->repoInfo().setService(service);
}
}

return YCPBoolean( !error );
Expand Down

0 comments on commit 0277e93

Please sign in to comment.