mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-12 13:51:32 +00:00
api/apt: whitespace/indentation cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9ef058d391
commit
89e4fc8cc7
@ -46,7 +46,7 @@ __PACKAGE__->register_method({
|
||||
user => 'all',
|
||||
},
|
||||
parameters => {
|
||||
additionalProperties => 0,
|
||||
additionalProperties => 0,
|
||||
properties => {
|
||||
node => get_standard_option('pve-node'),
|
||||
},
|
||||
@ -96,15 +96,12 @@ my $get_changelog_url =sub {
|
||||
my $srcpkg = $info->{SourcePkg} || $pkgname;
|
||||
if ($origin eq 'Debian') {
|
||||
$base =~ s!pool/updates/!pool/!; # for security channel
|
||||
$changelog_url = "http://packages.debian.org/changelogs/$base/" .
|
||||
"${srcpkg}_${pkgver}/changelog";
|
||||
$changelog_url = "http://packages.debian.org/changelogs/$base/${srcpkg}_${pkgver}/changelog";
|
||||
} elsif ($origin eq 'Proxmox') {
|
||||
if ($component eq 'pve-enterprise') {
|
||||
$changelog_url = "https://enterprise.proxmox.com/debian/$base/" .
|
||||
"${pkgname}_${pkgver}.changelog";
|
||||
$changelog_url = "https://enterprise.proxmox.com/debian/$base/${pkgname}_${pkgver}.changelog";
|
||||
} else {
|
||||
$changelog_url = "http://download.proxmox.com/debian/$base/" .
|
||||
"${pkgname}_${pkgver}.changelog";
|
||||
$changelog_url = "http://download.proxmox.com/debian/$base/${pkgname}_${pkgver}.changelog";
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -240,7 +237,7 @@ __PACKAGE__->register_method({
|
||||
protected => 1,
|
||||
proxyto => 'node',
|
||||
parameters => {
|
||||
additionalProperties => 0,
|
||||
additionalProperties => 0,
|
||||
properties => {
|
||||
node => get_standard_option('pve-node'),
|
||||
},
|
||||
@ -282,7 +279,7 @@ __PACKAGE__->register_method({
|
||||
protected => 1,
|
||||
proxyto => 'node',
|
||||
parameters => {
|
||||
additionalProperties => 0,
|
||||
additionalProperties => 0,
|
||||
properties => {
|
||||
node => get_standard_option('pve-node'),
|
||||
notify => {
|
||||
@ -387,7 +384,7 @@ __PACKAGE__->register_method({
|
||||
},
|
||||
proxyto => 'node',
|
||||
parameters => {
|
||||
additionalProperties => 0,
|
||||
additionalProperties => 0,
|
||||
properties => {
|
||||
node => get_standard_option('pve-node'),
|
||||
name => {
|
||||
@ -462,8 +459,7 @@ __PACKAGE__->register_method({
|
||||
if ($info->{status} eq 'Active') {
|
||||
$username = $info->{key};
|
||||
$pw = PVE::API2Tools::get_hwaddress();
|
||||
$ua->credentials("enterprise.proxmox.com:443", 'pve-enterprise-repository',
|
||||
$username, $pw);
|
||||
$ua->credentials("enterprise.proxmox.com:443", 'pve-enterprise-repository', $username, $pw);
|
||||
}
|
||||
}
|
||||
|
||||
@ -488,7 +484,7 @@ __PACKAGE__->register_method({
|
||||
check => ['perm', '/nodes/{node}', [ 'Sys.Audit' ]],
|
||||
},
|
||||
parameters => {
|
||||
additionalProperties => 0,
|
||||
additionalProperties => 0,
|
||||
properties => {
|
||||
node => get_standard_option('pve-node'),
|
||||
},
|
||||
@ -580,11 +576,9 @@ __PACKAGE__->register_method({
|
||||
my $candidate_ver = defined($p) ? $policy->candidate($p) : undef;
|
||||
my $res;
|
||||
if (my $current_ver = $p->{CurrentVer}) {
|
||||
$res = &$assemble_pkginfo($pkgname, $info, $current_ver,
|
||||
$candidate_ver || $current_ver);
|
||||
$res = $assemble_pkginfo->($pkgname, $info, $current_ver, $candidate_ver || $current_ver);
|
||||
} elsif ($candidate_ver) {
|
||||
$res = &$assemble_pkginfo($pkgname, $info, $candidate_ver,
|
||||
$candidate_ver);
|
||||
$res = $assemble_pkginfo->($pkgname, $info, $candidate_ver, $candidate_ver);
|
||||
delete $res->{OldVersion};
|
||||
} else {
|
||||
next;
|
||||
|
Loading…
Reference in New Issue
Block a user