Skip to content

Commit

Permalink
Merge pull request #182 from yast/service_fix_master
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Sep 21, 2023
2 parents b9d41f4 + 3e54205 commit a790b6b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
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 15:54:13 UTC 2023 - Ladislav Slezák <[email protected]>

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

-------------------------------------------------------------------
Wed Sep 13 16:36:53 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: 5.0.1
Version: 5.0.2
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 a790b6b

Please sign in to comment.