Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Sep 9, 2024
1 parent 78e4795 commit 9eea49c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SOURCES/libexec/package.shx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ validatePackage() {

if rpm -qp --scripts "$rpm_file" 2>&1 | grep -E -q '\%\{.*\}' ; then
show "ERROR\n" $RED
show "RPM package ${CL_BL_RED}${rpm_name}${CL_RED} contains unexpanded macros in scriptlets:" $RED
show "RPM package \"$rpm_name\" contains unexpanded macros in scriptlets:" $RED
show "${CL_GREY}"
rpm -qp --scripts "$rpm_file" 2>&1 | grep -E -A1 -B1 '\%\{.*\}' | sed '/^$/d' | sed 's/^/ /g'
show "${CL_NORM}"
Expand All @@ -29,7 +29,7 @@ validatePackage() {

if rpm -qlp "$rpm_file" 2>&1 | grep -E -q '\%\{.*\}' ; then
show "ERROR\n" $RED
show "RPM package ${CL_BL_RED}${rpm_name}${CL_RED} contains unexpanded macros in files section:" $RED
show "RPM package \"$rpm_name\" contains unexpanded macros in files section:" $RED
show "${CL_GREY}"
rpm -qlp "$rpm_file" 2>&1 | grep -E -A1 -B1 '\%\{.*\}' | sed '/^$/d' | sed 's/^/ /g'
show "${CL_NORM}"
Expand Down
2 changes: 1 addition & 1 deletion SOURCES/libexec/sources-scm.shx
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ packSourcesFromSvn() {

if [[ -n "$path" ]] ; then
if [[ ! -d "${source_name}_tmp/$path" ]] ; then
error "Can't find path ${CL_BL_RED}${path}${CL_NORM} in svn repository"
error "Can't find path \"$path\" in svn repository"
doExit $ERROR_SOURCE
else
mv "${source_name}_tmp/$path" "$source_name"
Expand Down

0 comments on commit 9eea49c

Please sign in to comment.