Issue #2674 has been updated by James Turnbull.

Status changed from Accepted to Ready for Testing


----------------------------------------
Bug #2674: createpackage.sh: problem finding install.rb
http://projects.reductivelabs.com/issues/2674

Author: Allan Marcus
Status: Ready for Testing
Priority: Normal
Assigned to: James Turnbull
Category: installation
Target version: 0.25.1
Affected version: 0.25.1rc1
Keywords: 
Branch: 


<pre>
cd to [...]/puppet-0.25.1/conf/osx
./createpackage.sh
</pre>
will get an error 
<pre>
line 53: /Users/csdadmin/Downloads/puppet-0.25.1/conf/osx/../install.rb: No 
such file or directory
</pre>
I think the problem is a missing "../"

<pre>
function find_installer() {
  # we walk up three directories to make this executable from the root,
  # root/conf or root/conf/osx
  if [ -f "./${INSTALLRB}" ]; then
    installer="$(pwd)/${INSTALLRB}"
  elif [ -f "../${INSTALLRB}" ]; then
    installer="$(pwd)/../${INSTALLRB}"
  elif [ -f "../../${INSTALLRB}" ]; then
    installer="$(pwd)/../${INSTALLRB}"    <---------------------- problem here
  else
    installer=""
  fi
}

function find_installer() {
  # we walk up three directories to make this executable from the root,
  # root/conf or root/conf/osx
  if [ -f "./${INSTALLRB}" ]; then
    installer="$(pwd)/${INSTALLRB}"
  elif [ -f "../${INSTALLRB}" ]; then
    installer="$(pwd)/../${INSTALLRB}"
  elif [ -f "../../${INSTALLRB}" ]; then
    installer="$(pwd)/../../${INSTALLRB}"    <---------------------- this works
  else
    installer=""
  fi
}
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to