forked from Katello/katello
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #37794 - Align deb-package details with rpm-package details
- Add "Section", "Maintainer", "Homepage" and "Installed size" to deb details - Add "Dependencies" tab to deb details
- Loading branch information
Showing
10 changed files
with
156 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Katello | ||
module Util | ||
module Deb | ||
def self.parse_dependencies(deps) | ||
deps&.split(',')&.collect { |d| d.strip } | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
attributes :depends | ||
attributes :pre_depends | ||
attributes :recommends | ||
attributes :suggests | ||
attributes :enhances | ||
attributes :breaks | ||
attributes :conflicts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
object @resource | ||
|
||
extends "katello/api/v2/debs/base" | ||
extends "katello/api/v2/debs/backend", | ||
:object => SmartProxy.pulp_primary!.content_service("deb").new(@resource.pulp_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class AddMoreDebFields < ActiveRecord::Migration[6.1] | ||
def up | ||
add_column :katello_debs, :section, :string, :limit => 255 | ||
add_column :katello_debs, :maintainer, :string, :limit => 255 | ||
add_column :katello_debs, :homepage, :string, :limit => 255 | ||
add_column :katello_debs, :installed_size, :string, :limit => 255 | ||
end | ||
|
||
def down | ||
remove_column :katello_debs, :section | ||
remove_column :katello_debs, :maintainer | ||
remove_column :katello_debs, :homepage | ||
remove_column :katello_debs, :installed_size | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...n_katello/app/assets/javascripts/bastion_katello/debs/details/views/deb-dependencies.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<span page-title ng-model="deb">{{ 'Deb: ' | translate }} {{ deb.nva }}</span> | ||
|
||
<section> | ||
|
||
<div ng-if="deb.depends.length > 0" class="details fl"> | ||
<h4 translate><b>Depends</b></h4> | ||
<div ng-repeat="item in deb.depends | orderBy:'toString()'"> | ||
{{ item }} | ||
</div> | ||
</div> | ||
|
||
<div ng-if="deb.pre_depends.length > 0" class="details fl"> | ||
<h4 translate><b>Pre-Depends</b></h4> | ||
<div ng-repeat="item in deb.pre_depends | orderBy:'toString()'"> | ||
{{ item }} | ||
</div> | ||
</div> | ||
|
||
<div ng-if="deb.recommends.length > 0" class="details fl"> | ||
<h4 translate><b>Recommends</b></h4> | ||
<div ng-repeat="item in deb.recommends | orderBy:'toString()'"> | ||
{{ item }} | ||
</div> | ||
</div> | ||
|
||
<div ng-if="deb.suggests.length > 0" class="details fl"> | ||
<h4 translate><b>Suggests</b></h4> | ||
<div ng-repeat="item in deb.suggests | orderBy:'toString()'"> | ||
{{ item }} | ||
</div> | ||
</div> | ||
|
||
<div ng-if="deb.enhances.length > 0" class="details fl"> | ||
<h4 translate><b>Enhances</b></h4> | ||
<div ng-repeat="item in deb.enhances | orderBy:'toString()'"> | ||
{{ item }} | ||
</div> | ||
</div> | ||
|
||
<div ng-if="deb.breaks.length > 0" class="details fl"> | ||
<h4 translate><b>Breaks</b></h4> | ||
<div ng-repeat="item in deb.breaks | orderBy:'toString()'"> | ||
{{ item }} | ||
</div> | ||
</div> | ||
|
||
<div ng-if="deb.conflicts.length > 0" class="details fl"> | ||
<h4 translate><b>Conflicts</b></h4> | ||
<div ng-repeat="item in deb.conflicts | orderBy:'toString()'"> | ||
{{ item }} | ||
</div> | ||
</div> | ||
|
||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters