You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-09-02 12:41:17 +03:00
change code to determine package type
This commit is contained in:
@@ -5007,13 +5007,13 @@ int processCommand(string* arguments)
|
|||||||
cout << endl;
|
cout << endl;
|
||||||
if ( rootUser)
|
if ( rootUser)
|
||||||
{
|
{
|
||||||
system("rpm -qi mariadb-columnstore-platform > /tmp/columnstore.txt 2>&1");
|
int rtnCode = system("rpm -qi mariadb-columnstore-platform > /tmp/columnstore.txt 2>&1");
|
||||||
if (oam.checkLogStatus("/tmp/columnstore.txt", "Name"))
|
if (WEXITSTATUS(rtnCode) == 0)
|
||||||
system("cat /tmp/columnstore.txt");
|
system("cat /tmp/columnstore.txt");
|
||||||
else {
|
else {
|
||||||
system("dpkg -s mariadb-columnstore-platform > /tmp/columnstore.txt 2>&1");
|
rtnCode = system("dpkg -s mariadb-columnstore-platform > /tmp/columnstore.txt 2>&1");
|
||||||
if (oam.checkLogStatus("/tmp/columnstore.txt", "Status: install"))
|
if (WEXITSTATUS(rtnCode) == 0)
|
||||||
system("cat /tmp/columnstore.txt");
|
system("cat /tmp/columnstore.txt");
|
||||||
else {
|
else {
|
||||||
SystemSoftware systemsoftware;
|
SystemSoftware systemsoftware;
|
||||||
oam.getSystemSoftware(systemsoftware);
|
oam.getSystemSoftware(systemsoftware);
|
||||||
|
@@ -2683,12 +2683,12 @@ int main(int argc, char *argv[])
|
|||||||
EEPackageType = "binary";
|
EEPackageType = "binary";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
system("rpm -qi mariadb-columnstore-platform > /tmp/columnstore.txt 2>&1");
|
int rtnCode = system("rpm -qi mariadb-columnstore-platform > /tmp/columnstore.txt 2>&1");
|
||||||
if (oam.checkLogStatus("/tmp/columnstore.txt", "Name"))
|
if (WEXITSTATUS(rtnCode) == 0)
|
||||||
EEPackageType = "rpm";
|
EEPackageType = "rpm";
|
||||||
else {
|
else {
|
||||||
system("dpkg -s mariadb-columnstore-platform > /tmp/columnstore.txt 2>&1");
|
rtnCode = system("dpkg -s mariadb-columnstore-platform > /tmp/columnstore.txt 2>&1");
|
||||||
if (oam.checkLogStatus("/tmp/columnstore.txt", "Status: install"))
|
if (WEXITSTATUS(rtnCode) == 0)
|
||||||
EEPackageType = "deb";
|
EEPackageType = "deb";
|
||||||
else
|
else
|
||||||
EEPackageType = "binary";
|
EEPackageType = "binary";
|
||||||
|
Reference in New Issue
Block a user