Skip to content

Commit

Permalink
Issue #1147: enhance some code comments
Browse files Browse the repository at this point in the history
concerning the PackageIsDownloadable flag
  • Loading branch information
bschmalhofer committed Sep 23, 2021
1 parent 362e9e4 commit 72e791d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Kernel/Modules/AdminPackageManager.pm
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ sub Run {
PACKAGEACTION:
for my $PackageAction (qw(DownloadLocal Rebuild Reinstall)) {

# provide local download button on when the package allows it
if (
$PackageAction eq 'DownloadLocal'
&& (
Expand Down Expand Up @@ -431,7 +432,7 @@ sub Run {
},
);

# check if is possible to download files
# check whether it is allowed to download files
if (
!defined $Structure{PackageIsDownloadable}
|| (
Expand Down Expand Up @@ -574,7 +575,7 @@ sub Run {
Data => { %Param, %Frontend, },
);

# allow to download only if package is allow to do it
# provide remote download button only when the package allows it
if (
!defined $Structure{PackageIsDownloadable}
|| (
Expand Down Expand Up @@ -732,7 +733,7 @@ sub Run {
},
);

# check if is possible to download files
# check whether it is allowed to download files
if (
!defined $Structure{PackageIsDownloadable}
|| (
Expand Down
2 changes: 1 addition & 1 deletion Kernel/System/Console/Command/Dev/Package/Build.pm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ sub Run {
String => $FileString,
);

# just build it if PackageIsDownloadable flag is enable
# Don't build the opm if the PackageIsDownloadable flag is explicitly disabled.
if (
defined $Structure{PackageIsDownloadable}
&& !$Structure{PackageIsDownloadable}->{Content}
Expand Down

0 comments on commit 72e791d

Please sign in to comment.