Discuss Cydia Package Help at the iPhone Developer Exchange - Hackint0sh.org; Hi,
I have two questions. I hope someone can help me. Well, the first one.
...
-
Cydia Package Help
Hi,
I have two questions. I hope someone can help me. Well, the first one.
I would like to know how can I access from an application installed via Cydia to another application path installed via Cydia too. Or, how can I install add on's to an app previoully installed. I mena, for example, I have made a dictionary app, and I have installed on my iPhone. And now I want to download a dicctionary Data Base to it. How can I access this DB from de dic app, or haw can I install it at the same path of the main app?
That was the first question. And the second one.
I would like to know too, if it's possible restart the iphone when the package is installed.
Thank you.
-
-
Ehy dude! Are you the one of iWep??
However I hope I have understood your question... If you are asking about replacing a .deb package (or just a part of it) through Cydia with another .deb package, the solution it's quite simple:
If you own the cydia repo of the second package, just change its control file: add a line like this one
Replaces: package1
In which package1 is the "Package Name" (ex: not Core Utilities but coreutils) of the first package... the one you wanna replace.
An example with more packages having parts that are going to be replaced:
Replaces: coreutils, curl, gnupg
In your case, the control file should be something like:
Package: newdictionary
Version: 1.0.0-0
Priority: Standard
Section: Dictionaries
Essential: no
Maintainer: wazowski <your@mail.com>
Replaces: newdictionary, dictionaryAPP
Architecture: iphoneos-arm
Description: A new dictionary for dictionaryAPP. It will replace the old one, if existing.
Name: New Dictionary for DictionaryAPP
Author: wazowski <your@mail.com>
but...you know how to make a deb for Cydia, don't you?
-
-
Ah... I have iwepprerelease 1.0.3 on my iphone 3g 3.0.1.
Why a wep encrypted AP should appear "open" and not "WEP", when it's compatible with the app??
I mean.. both compatible and open. But it's an encrypted AP...
-

Originally Posted by
111111
Ehy dude! Are you the one of iWep??
I think so 

Originally Posted by
111111
However I hope I have understood your question... If you are asking about replacing a .deb package (or just a part of it) through Cydia with another .deb package, the solution it's quite simple:
If you own the cydia repo of the second package, just change its control file: add a line like this one
Replaces: package1
In which package1 is the "Package Name" (ex: not Core Utilities but coreutils) of the first package... the one you wanna replace.
An example with more packages having parts that are going to be replaced:
Replaces: coreutils, curl, gnupg
In your case, the control file should be something like:
Package: newdictionary
Version: 1.0.0-0
Priority: Standard
Section: Dictionaries
Essential: no
Maintainer: wazowski <your@mail.com>
Replaces: newdictionary, dictionaryAPP
Architecture: iphoneos-arm
Description: A new dictionary for dictionaryAPP. It will replace the old one, if existing.
Name: New Dictionary for DictionaryAPP
Author: wazowski <your@mail.com>
I think I did not explain myself. But I dont know if this is gonna work. I was wondering how can I add new dictionaries to an existing application path.
For example, I have my app called MyApp. Installed in my iPhone by my Cydia repo. And now I want to add to MyApp 4 new files, called MyFile00, MyFile01, MyFile02 and MyFile03.
So what I have understood from your reply is I can replace existing files, but Can I add new ones?

Originally Posted by
111111
but...you know how to make a deb for Cydia, don't you?

Yes, I think so too.

Originally Posted by
111111
Ah... I have iwepprerelease 1.0.3 on my iphone 3g 3.0.1.
Why a wep encrypted AP should appear "open" and not "WEP", when it's compatible with the app??
I mean.. both compatible and open. But it's an encrypted AP...
I don't know. Can you send me a screenshot?
Waz.
-
-
If you want to ADD new dictionaries the Replaces label is NOT needed. But if you wanna REPLACE also an old dictionary, you're likely to get an error so you have to add Replaces: MyApp
Well... I suggest you to add the Replaces label in every package:
For a new dictionary --------> Replaces: newdictionary
To replace and old one -----> Replaces: newdictionary, MyApp
This because if you reinstall the newdictionary, you will replace newdictionary, so you need to specify it, or Cydia will stop the process.
Hope this helps... You may want to take a look to my Packages file: http://theworm.altervista.org/cydia/Packages
You will see that the major part of the packages, replaces itself. But.. take a look at com.theworm.30libraries package!
For my problem.. I've done a screenshot: http://theworm.altervista.org/IMG_0101.PNG. The AP Sitecom456DDC is wep encrypted but it is shown as "open". This happens with all APs wep encrypted that are compatible with your app.
However I'm happy to see that it finds compatible APs here in Italy too!
Last edited by 111111; 10-13-2009 at 04:06 PM.
-
Really strange... i have an AP, wep encrypted
iWep Lite 3.0 says it's not compatible and wep encrypted
iWep Pro says it's compatible and it's open (not encrypted)
Why? Did you add support for other bssids in iWep Pro?
-
-

Originally Posted by
111111
Really strange... i have an AP, wep encrypted
iWep Lite 3.0 says it's not compatible and wep encrypted
iWep Pro says it's compatible and it's open (not encrypted)
Why? Did you add support for other bssids in iWep Pro?
Ok. Don't worry. It's possible I have miss something. You can see this pictures to compare what I think the app was doing and what is happening to you:
http://3.bp.blogspot.com/_l2cVhAKs3f...00-h/photo.jpg
http://farm4.static.flickr.com/3428/...b29a0cafc3.jpg
http://farm3.static.flickr.com/2646/...16c4a0f885.jpg
I'm gonna release a new version with the posibility of save networks to file, so when it's ready, you could send me the info I need to check.
Thank you for the control files support of Cydia. I did it other way.
Waz.
-
Ok, I'll wait for the new version then.
Can you tell how did you managed to solve your problems with packages?
-
-

Originally Posted by
111111
Can you tell how did you managed to solve your problems with packages?
I have just made new packages installation. I have installed dictionaries at /var/mobile/Documets and then the app read the dictionary fromm that path.
The most dificult thing was add Depends: line on control file. So, control file was:
...
Depends: MyApp
...
So when a dictionary is selected to install, this line prevents the application is previously installed.
I think it works in the same way Replace: command does.
Waz.
-
Well..
Replace: is used to tell what packages are going to be overwritten
Depends: is used to tell what packages are needed to be installed to install your package.
And can you tell me why there are 2 packages of dictionaries in Cydia? STDic2004 and STDic2005?
Should I install both of them? STDic2005 is just an upgrade? And if it is an upgrade, couldn't you just change the old package (content, version.... and name if you want)?
Last edited by 111111; 10-15-2009 at 03:19 PM.
-
Similar Threads
-
By nycdude777 in forum iPhone Developer Exchange
Replies: 11
Last Post: 03-11-2009, 05:31 PM
-
By YYZiPhoneGuy in forum PwnageTool
Replies: 3
Last Post: 09-07-2008, 09:13 AM
-
By koudelka in forum Free Toolchain Software
Replies: 16
Last Post: 08-15-2008, 12:11 AM
-
By Rikk in forum Free Toolchain Software
Replies: 4
Last Post: 07-24-2008, 04:33 PM
-
By bobhope in forum General
Replies: 2
Last Post: 03-23-2008, 08:16 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks