My repo and Main script execution failed

Discussion in 'iOS Jailbreak & Cydia' started by DDAAXX, Apr 22, 2008.

  1. DDAAXX

    DDAAXX New Member

    Joined:
    Apr 22, 2008
    Messages:
    2
    Likes Received:
    0
    Hi,
    I'm trying to do a personal repo with the best applications for me, but I receive the "Main script execution failed" and I cannot fix the problem.
    I'm trying to add SMSD for automatic install, and the code is:
    PHP:
     <array>
     <
    dict>
      <
    key>bundleIdentifier</key>
      <
    string>com.amrut.iphone.SMSD</string>
      <
    key>name</key>
      <
    string>SMSD</string>
      <
    key>version</key>
      <
    string>0.2.3 b1</string>
      <
    key>location</key>
      <
    string>http://www.teambikeolympo.it/public/com.amrut.iphone.SMSD.zip</string>
      
    <key>size</key>
      <
    string>164833</string>
      <
    key>url</key>
      <
    string>http://amrut.joshi.googlepages.com/</string>
      
    <key>description</key>
      <
    string>Programma di gestione SMS avanzato</string>
      <
    key>maintainer</key>
      <
    string>DDAAXX</string>
      <
    key>contact</key>
      <
    string>ddaaxx@gmail.com</string>
      <
    key>category</key>
      <
    string>Visivagroup Repository</string>
      <
    key>date</key>
      <
    string>1208856600</string>
      <
    key>hash</key>
      <
    string>6df0d8071ecfb72238f0e33d5137e691</string>
      <
    key>scripts</key>
      <
    dict>
          <
    key>install</key>
          <array>
              <array>
                  <
    string>Exec</string>
                  <
    string>/bin/cp /Applications/MobileSMS.app /Applications/MobileSMS.orig</string>
              </array>
              <array>
                  <
    string>RemovePath</string>
                  <
    string>/Applications/MobileSMS.app</string>
              </array>
              <array>
                  <
    string>CopyPath</string>
                  <
    string>SMSD.app</string>
                  <
    string>/Applications/SMSD.app</string>
              </array>
              <array>
                  <
    string>CopyPath</string>
                  <
    string>MobileSMS.app</string>
                  <
    string>/Applications/MobileSMS.app</string>
              </array>
              <array>
                  <
    string>CopyPath</string>
                  <
    string>Library</string>
                  <
    string>/Library</string>
              </array>
              <array>
                  <
    string>Exec</string>
                  <
    string>/bin/chmod -R 775 /Applications/SMSD.app</string>
              </array>
              <array>
                  <
    string>Exec</string>
                  <
    string>/bin/chmod -R 775 /Applications/MobileSMS.app</string>
              </array>
              <array>
                  <
    string>Exec</string>
                  <
    string>/bin/chmod -R 755 /Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string>
              </array>
              <array>
                  <
    string>Notice</string>
                  <
    string>Riavviare il telefono per completare installazioneGrazie.</string>
              </array>
          </array>
          <
    key>uninstall</key>
          <array>
              <array>
                  <
    string>IfNot</string>
                  <array>
                      <array>
                      <
    string>Exec</string>
                      <
    string>/bin/launchctl unload /Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string>
                      </array>
                  </array>
                  <array>
                      <array>
                      <
    string>Notice</string>
                      <
    string>Dovete riavviare il vostro iPhone per completare la disinstallazione.</string>
                      </array>
                  </array>
              </array>
              <array>
                  <
    string>RemovePath</string>
                  <
    string>/Applications/SMSD.app</string>
                  <
    string>/Applications/MobileSMS.app</string>
                  <
    string>/Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string>
              </array>
              <array>
                  <
    string>Exec</string>
                  <
    string>/bin/cp /Applications/MobileSMS.orig /Applications/MobileSMS.app</string>
              </array>
              <array>
                  <
    string>RemovePath</string>
                  <
    string>/Applications/MobileSMS.orig</string>
              </array>
          </array>
          <
    key>update</key>
          <array>
              <array>
                  <
    string>IfNot</string>
                  <array>
                      <array>
                      <
    string>Exec</string>
                      <
    string>/bin/launchctl unload /Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string>
                      </array>
                  </array>
                  <array>
                      <array>
                      <
    string>Notice</string>
                      <
    string>Dovete riavviare il vostro iPhone per completare aggiornamento.</string>
                      </array>
                  </array>
              </array>
              <array>
                  <
    string>RemovePath</string>
                  <
    string>/Applications/SMSD.app</string>
                  <
    string>/Applications/MobileSMS.app</string>
                  <
    string>/Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string>
              </array>
              <array>
                  <
    string>CopyPath</string>
                  <
    string>SMSD.app</string>
                  <
    string>/Applications/SMSD.app</string>
              </array>
              <array>
                  <
    string>CopyPath</string>
                  <
    string>MobileSMS.app</string>
                  <
    string>/Applications/MobileSMS.app</string>
              </array>
              <array>
                  <
    string>CopyPath</string>
                  <
    string>Library</string>
                  <
    string>/Library</string>
              </array>
              <array>
                  <
    string>Exec</string>
                  <
    string>/bin/chmod -R 775 /Applications/SMSD.app</string>
              </array>
              <array>
                  <
    string>Exec</string>
                  <
    string>/bin/chmod -R 775 /Applications/MobileSMS.app</string>
              </array>
              <array>
                  <
    string>Exec</string>
                  <
    string>/bin/chmod -R 755 /Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string>
              </array>
          </array>
      </
    dict>
      
     </
    dict>
    I checked the code 100000000000 times, but for me is all ok... where is the error?
    If you whant to check the zip file, it is here: http://www.teambikeolympo.it/public/com.amrut.iphone.SMSD.zip

    Thanks a lot for the help

    Please Register or Log in to view images

  2. DDAAXX

    DDAAXX New Member

    Joined:
    Apr 22, 2008
    Messages:
    2
    Likes Received:
    0
    I've just done the debug session via SSH, and the script hang on:
    Do you have idea?

    Thanks
    DDAAXX
  3. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Nevermind what personman said. He must not have seen the Exec command you issued first.
    [Nevermind that first sentence. He deleted the post.]

    Now think. Why wouldn't Installer complete that CopyPath command?

    I think you'll kick yourself when the answer jumps out at you.

    Please Register or Log in to view images

  4. personman1

    personman1 Banned

    Joined:
    Apr 22, 2008
    Messages:
    295
    Likes Received:
    4
    LOL, you can't replace the/Library folder.
  5. lazyasada

    lazyasada Banned

    Joined:
    Jan 13, 2008
    Messages:
    2,000
    Likes Received:
    52
    ok ill see what is up here then p.m me for the info that is wrong
  6. personman1

    personman1 Banned

    Joined:
    Apr 22, 2008
    Messages:
    295
    Likes Received:
    4
    /Library contains important system stuff.
  7. lazyasada

    lazyasada Banned

    Joined:
    Jan 13, 2008
    Messages:
    2,000
    Likes Received:
    52
    PHP:
    <array> 
     <
    dict
      <
    key>bundleIdentifier</key
      <
    string>com.amrut.iphone.SMSD</string
      <
    key>name</key
      <
    string>SMSD</string
      <
    key>version</key
      <
    string>0.2.3 b1</string
      <
    key>location</key
      <
    string>http://www.teambikeolympo.it/public/com.amrut.iphone.SMSD.zip</string> 
      
    <key>size</key
      <
    string>164833</string
      <
    key>url</key
      <
    string>http://amrut.joshi.googlepages.com/</string> 
      
    <key>description</key
      <
    string>Programma di gestione SMS avanzato</string
      <
    key>maintainer</key
      <
    string>DDAAXX</string
      <
    key>contact</key
      <
    string>ddaaxx@gmail.com</string
      <
    key>category</key
      <
    string>Visivagroup Repository</string
      <
    key>date</key
      <
    string>1208856600</string
      <
    key>hash</key
      <
    string>6df0d8071ecfb72238f0e33d5137e691</string
      <
    key>scripts</key
      <
    dict
          <
    key>install</key
          <array> 
              <array> 
                  <
    string>Exec</string
                  <
    string>/bin/cp /Applications/MobileSMS.app</string
              </array> 
              <array> 
                  <
    string>RemovePath</string
                  <
    string>/Applications/MobileSMS.app</string
              </array> 
              <array> 
                  <
    string>CopyPath</string
                  <
    string>SMSD.app</string
                  <
    string>/Applications/MobileSMS.app</string
              </array> 
              <array> 
                  <
    string>CopyPath</string
                  <
    string>MobileSMS.app</string
                  <
    string>/Applications/MobileSMS.app</string
              </array> 
              <array> 
                  <
    string>CopyPath</string
                  <
    string>Library</string
                  <
    string>/Library</string
              </array> 
              <array> 
                  <
    string>Exec</string
                  <
    string>/bin/chmod -R 775 /Applications/MobileSMS.app</string
              </array> 
              <array> 
                  <
    string>Exec</string
                  <
    string>/bin/chmod -R 775 /Applications/MobileSMS.app</string
              </array> 
              <array> 
                  <
    string>Exec</string
                  <
    string>/bin/chmod -R 755 /Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string
              </array> 
              <array> 
                  <
    string>Notice</string
                  <
    string>Riavviare il telefono per completare installazioneGrazie.</string
              </array> 
          </array> 
          <
    key>uninstall</key
          <array> 
              <array> 
                  <
    string>IfNot</string
                  <array> 
                      <array> 
                      <
    string>Exec</string
                      <
    string>/bin/launchctl unload /Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string
                      </array> 
                  </array> 
                  <array> 
                      <array> 
                      <
    string>Notice</string
                      <
    string>Dovete riavviare il vostro iPhone per completare la disinstallazione.</string
                      </array> 
                  </array> 
              </array> 
              <array> 
                  <
    string>RemovePath</string
                  <
    string>/Applications/MobileSMS.app</string
                  <
    string>/Applications/MobileSMS.app</string
                  <
    string>/Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string
              </array> 
              <array> 
                  <
    string>Exec</string
                  <
    string>/bin/cp /Applications/MobileSMS.orig /Applications/MobileSMS.app</string
              </array> 
              <array> 
                  <
    string>RemovePath</string
                  <
    string>/Applications/MobileSMS.orig</string
              </array> 
          </array> 
          <
    key>update</key
          <array> 
              <array> 
                  <
    string>IfNot</string
                  <array> 
                      <array> 
                      <
    string>Exec</string
                      <
    string>/bin/launchctl unload /Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string
                      </array> 
                  </array> 
                  <array> 
                      <array> 
                      <
    string>Notice</string
                      <
    string>Dovete riavviare il vostro iPhone per completare aggiornamento.</string
                      </array> 
                  </array> 
              </array> 
              <array> 
                  <
    string>RemovePath</string
                  <
    string>/Applications/SMSD.app</string
                  <
    string>/Applications/MobileSMS.app</string
                  <
    string>/Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string
              </array> 
              <array> 
                  <
    string>CopyPath</string
                  <
    string>SMSD.app</string
                  <
    string>/Applications/SMSD.app</string
              </array> 
              <array> 
                  <
    string>CopyPath</string
                  <
    string>MobileSMS.app</string
                  <
    string>/Applications/MobileSMS.app</string
              </array> 
              <array> 
                  <
    string>CopyPath</string
                  <
    string>Library</string
                  <
    string>/Library</string
              </array> 
              <array> 
                  <
    string>Exec</string
                  <
    string>/bin/chmod -R 775 /Applications/SMSD.app</string
              </array> 
              <array> 
                  <
    string>Exec</string
                  <
    string>/bin/chmod -R 775 /Applications/MobileSMS.app</string
              </array> 
              <array> 
                  <
    string>Exec</string
                  <
    string>/bin/chmod -R 755 /Library/LaunchDaemons/com.amrut.iphone.SMSD.plist</string
              </array> 
          </array> 
      </
    dict
       
     </
    dict>  
    try that or this should but just might work
  8. personman1

    personman1 Banned

    Joined:
    Apr 22, 2008
    Messages:
    295
    Likes Received:
    4
    You have to completely redo your repo or wait until lazyasda gets his server and we'll do it for you.
  9. lazyasada

    lazyasada Banned

    Joined:
    Jan 13, 2008
    Messages:
    2,000
    Likes Received:
    52
    ya dude we can have your repo done by tuesday or wensday just p.m me if you want to or not
  10. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    You do realise that he's not replacing the /Library folder, right? He's adding to it.

    For an example of this in action, take a look at the first entry on the TouchRepo (tuxpuck). The MovePath isn't replacing the /usr/lib directory, it's adding to it.

    http://www.touchrepo.com/repository/

Share This Page