Project

General

Profile

Bug #24221

Correct how entry_ls detect an rpm installation.

Added by Marco Mascheroni 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
03/25/2020
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Duration:

Description

This if statement

    if os.path.realpath(gfactory_dir)=="/var/lib/gwms-factory/work-dir":

checks gets the real path of the gfactory_dir and compares it with a predefined path (/var/lib/gwms-factory/work-dir). However, /var/lib/gwms-factory/work-dir can also be a symlink, and the rpm installation is not detected. We need to call os.path.realpath also on the right side of the if statement.

History

#1 Updated by Marco Mascheroni 2 months ago

  • Status changed from New to Resolved

#2 Updated by Marco Mambelli about 2 months ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF