Skip to content

Commit

Permalink
beesh: allow change of PKGVERSION , PKGEXTRAVERSION and PKGREVISION
Browse files Browse the repository at this point in the history
When we start with a versionless file, we need to be able to change
the versions. We will add other tests for completeness in the following
patches
  • Loading branch information
donald committed Jul 5, 2016
1 parent 94ef841 commit 9c3c227
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -779,21 +779,6 @@ function extract_new_package_variables() {
fi
print_info "${COLOR_YELLOW}PKGEXTRANAME changed from '${oPKGEXTRANAME}' to '${PKGEXTRANAME}'"
fi
if [ "${PKGVERSION}" != "${oPKGVERSION}" ] ; then
print_error "${BEE##*/}: Invalid change in PKGVERSION(${PKGVERSION}) detected. Changing PKGVERSION is not supported."
exit 1
fi
if [ "${PKGEXTRAVERSION}" != "${oPKGEXTRAVERSION}" ] ; then
if [ ! -z "${oPKGEXTRAVERSION}" -a "${PKGEXTRAVERSION}" != "${oPKGEXTRAVERSION}_${PKGEXTRAVERSION#${oPKGEXTRAVERSION}_}" ] ; then
print_error "${BEE##*/}: Invalid change in PKGEXTRAVERSION(${PKGEXTRAVERSION}) detected. Only appending '_something' is supported."
exit 1
fi
print_info "${COLOR_YELLOW}PKGEXTRAVERSION changed from '${oPKGEXTRAVERSION}' to '${PKGEXTRAVERSION}'"
fi
if [ "${PKGREVISION}" != "${oPKGREVISION}" ] ; then
print_error "${BEE##*/}: Invalid change in PKGREVISION(${PKGREVISION}) detected. Changing PKGREVISION is not supported."
exit 1
fi

PKGFULLPKG=${PKGFULLNAME}-${PKGFULLVERSION}-${PKGREVISION}

Expand Down

0 comments on commit 9c3c227

Please sign in to comment.