Opened 14 years ago

Closed 14 years ago

#142 closed defect (duplicate)

update-smart-drivedb does not work on FreeBSD (+ solution)

Reported by: wesha Owned by: somebody
Priority: minor Milestone: Release 5.41
Component: drivedb Version: 5.40
Keywords: Cc:

Description

/usr/local/sbin > ./update-smart-drivedb
./update-smart-drivedb~: syntax error in version number: 5.40

Problem: SED somehow fails to understand "?" metacharacter:

BRANCH="`echo $VERSION | sed -n 's|\([0-9][0-9]*\)\.\([0-9][0-9]*
\)\([
0-9].*\)\?$|RELEASE_\1_\2_DRIVEDB|p'`"

Solution: be explicit:

BRANCH="echo $VERSION | sed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\([^0-9].*\)\{0,1\}$|RELEASE_\1_\2_DRIVEDB|p'"

Change History (2)

comment:1 by Christian Franke, 14 years ago

Milestone: Release 5.40.1

Thanks - but this likely was already fixed in r3214 (ticket #126). Please test if possible.

comment:2 by Christian Franke, 14 years ago

Milestone: Release 5.41
Resolution: duplicate
Status: newclosed

See ticket #126.

Note: See TracTickets for help on using tickets.