https://bugs.contribs.org/show_bug.cgi?id=10670
Bug ID: 10670
Summary: prevent upgrade of nextcloud rpm if running version is
> to rpm version
Classification: Contribs
Product: SME Contribs
Version: Futur
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-nextcloud
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
you are able to upgrade the nextcloud app via webinterface.
an issue could arise if you updated to let'S say 14.0.5 after installing 13.0.1
rpm and 14.0.1 rpm arise on update list.
this would prevent you from accessing to nextcloud after the yum transaction
and force you to recover the archive and update manually.
here a potential dirty solution :
https://stackoverflow.com/questions/4037410/failing-an-rpm-install-programmatically-in-a-spec-step
%pre
if [ -f /some/file ]
then
echo "/some/file exists, it shouldn't"
exit 1
fi
let'S say instead of /some/file test we check for the current installed version
in /usr/share/nextcloud/version.php
<?php
$OC_Version = array(14,0,4,2);
$OC_VersionString = '14.0.4';
$OC_Edition = '';
$OC_Channel = 'stable';
$OC_VersionCanBeUpgradedFrom = array (
'nextcloud' =>
array (
'13.0' => true,
'14.0' => true,
),
'owncloud' =>
array (
),
);
$OC_Build = '2018-11-22T13:16:37+00:00 ';
$vendor = 'nextcloud';
let's sed $OC_VersionString = '14.0.4'; for the version number and fail if it
is higher than rpm version
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/