|
Mantis - cswutils
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 2869 | regular use | minor | always | 2008-04-29 09:46 | 2009-08-13 10:29 |
|
|
|||||
| Reporter: | clarkema | Platform: | |||
| Assigned To: | dam | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | |||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | |||
|
|
|||||
| Summary: | 0002869: createpkg and checkpkg exit with \'ERROR: $software must be all lowercase\', even if the software name _is_ all lowercase. | ||||
| Description: |
clarkema@desktop03:~/sgdsync/solaris> cat /etc/release Solaris 10 8/07 s10s_u4wos_12b SPARC Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 16 August 2007 clarkema@desktop03:~/sgdsync/solaris> grep NAME pkginfo NAME=sgdsync - SGD application and server management tool. clarkema@desktop03:~/sgdsync/solaris> createpkg -r .. i copyright ERROR: sgdsync must be all lowercase |
||||
| Steps To Reproduce: | |||||
| Additional Information: |
It seems that the current check for \'lowercase-ness\' in createpkg and checkpkg doesn\'t work. The following patch appears to fix the issue, although it has not been exhaustively tested: 603 clarkema@desktop03:~/sgdsync/solaris> diff -U3 `which createpkg` ~clarkema/createpkg --- /opt/csw/bin/createpkg Mon Nov 22 20:40:35 2004 +++ /home/clarkema/createpkg Tue Apr 29 14:10:36 2008 @@ -87,12 +87,8 @@ PKGREV=`sed -n \'s/^VERSION=//p\' pkginfo` SOFTNAME=`sed -n \'s/^NAME=//p\' pkginfo|awk \'{print $1}\'` -case $SOFTNAME in - *[A-Z]*) - echo ERROR: $SOFTNAME must be all lowercase - exit 1 - ;; -esac +echo $SOFTNAME | grep \'[A-Z]\' > /dev/null \\ + && die $SOFTNAME must be all lowercase PKGFILE=$SOFTNAME-$PKGREV-SunOS`uname -r`-$ARCH-CSW.pkg The same needs to be done to checkpkg. |
||||
| Relationships | |||||
| Attached Files: | |||||
|
|
|||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2009-08-07 20:39 | james | Note Added: 0006534 | |||
| 2009-08-07 20:40 | james | Issue Monitored: james | |||
| 2009-08-07 23:18 | dam | Status | new => assigned | ||
| 2009-08-07 23:18 | dam | Assigned To | => dam | ||
| 2009-08-07 23:24 | dam | Note Added: 0006538 | |||
| 2009-08-13 10:29 | dam | Note Added: 0006568 | |||
| 2009-08-13 10:29 | dam | Status | assigned => closed | ||
| 2009-08-13 10:29 | dam | Resolution | open => fixed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||