[PC-BSD Commits] r12855 - pcbsd/current/src-sh/pbi-manager
svn at pcbsd.org
svn at pcbsd.org
Mon Sep 19 09:47:49 PDT 2011
Author: kris
Date: 2011-09-19 09:47:48 -0700 (Mon, 19 Sep 2011)
New Revision: 12855
Modified:
pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:
Fix a bug checking the FreeBSD series when doing patching, only need the
major number
Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager 2011-09-19 16:31:53 UTC (rev 12854)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager 2011-09-19 16:47:48 UTC (rev 12855)
@@ -2458,8 +2458,10 @@
fi
# Check the fbsd version
- if [ "`cat ${oldDir}/pbi_fbsdver`" != "$PBI_FBSDVER" ] ; then
- exit_err "\"${_pbilow}\" patch is for FreeBSD \"$PBI_FBSDVER\" only!"
+ _pFbsdVer="`cat ${oldDir}/pbi_fbsdver | cut -c 1`"
+ _sFbsdVer="`echo $PBI_FBSDVER | cut -c 1`"
+ if [ "$_pFbsdVer" != "$_sFbsdVer" ] ; then
+ exit_err "\"${_pbilow}\" patch is for FreeBSD ${_sFbsdVer}.X only!"
fi
}
More information about the Commits
mailing list