Skip to content

Commit

Permalink
Merge pull request #604 from yast/repo_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Mar 8, 2022
2 parents fc293fa + 62756c5 commit 07c1dd0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions package/yast2-packager.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Mar 8 13:37:35 UTC 2022 - Ladislav Slezák <lslezak@suse.cz>

- Properly set the repository alias for the Full medium add-ons
(bsc#1193214)
- 4.4.24

-------------------------------------------------------------------
Mon Feb 14 09:40:00 UTC 2022 - Ladislav Slezák <lslezak@suse.cz>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-packager.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-packager
Version: 4.4.23
Version: 4.4.24
Release: 0
Summary: YaST2 - Package Library
License: GPL-2.0-or-later
Expand Down
10 changes: 9 additions & 1 deletion src/include/packager/repositories_include.rb
Expand Up @@ -146,7 +146,15 @@ def createSourceImpl(url, plaindir, download, preferred_name, force_alias)
next
end

alias_name = (force_alias == "") ? propose_alias(product.name) : force_alias
alias_name = if force_alias != ""
force_alias
elsif product.media_name && !product.media_name.empty?
propose_alias(product.media_name)
elsif product.name && !product.name.empty?
propose_alias(product.name)
end

alias_name = propose_alias(Packages.fallback_name) if alias_name.empty?

# map with repository parameters: $[ "enabled" : boolean,
# "autorefresh" : boolean, "raw_name" : string, "alias" : string,
Expand Down

0 comments on commit 07c1dd0

Please sign in to comment.