Skip to content

Commit

Permalink
Using strip() to remove leading and trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
GAURAVRAMRAKHYANI committed Aug 28, 2023
1 parent d4cc30b commit ebf619f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/src/package_managers/YumPackageManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def is_package(chunk):

for line_index in range(0, len(lines)):
# Do not install Obsoleting Packages. The obsoleting packages list comes towards end in the output.
if lines[line_index].startswith("Obsoleting Packages"):
if lines[line_index].strip().startswith("Obsoleting Packages"):
break

line = re.split(r'\s+', lines[line_index].strip())
Expand Down

0 comments on commit ebf619f

Please sign in to comment.