]> git.saurik.com Git - cydia.git/commitdiff
Store Sections.plist using space characters rather than underscores.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 16 Nov 2010 07:16:55 +0000 (23:16 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 16 Nov 2010 07:17:10 +0000 (23:17 -0800)
MobileCydia.app/Sections.plist
MobileCydia.mm

index eac6cdbbcbb24e00682bb10f36b165840152ac2e..03a6f5dea7cdfa6c0cc04417c9e4975e442dba4f 100644 (file)
@@ -3,10 +3,10 @@
 <plist version="1.0">
 
 <dict>
-    <key>Hunspell_Dictionaries</key>
+    <key>Hunspell Dictionaries</key>
     <dict>
         <key>Rename</key>
-        <string>Dictionaries_(Hunspell)</string>
+        <string>Dictionaries (Hunspell)</string>
     </dict>
 
     <key>Utility</key>
         <string>Utilities</string>
     </dict>
 
-    <key>Themes_(Springboard)</key>
+    <key>Themes (Springboard)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(SpringBoard)</string>
+        <string>Themes (SpringBoard)</string>
     </dict>
 
-    <key>Themes_(SummerBoard)</key>
+    <key>Themes (SummerBoard)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(SpringBoard)</string>
+        <string>Themes (SpringBoard)</string>
     </dict>
     
-    <key>Themes_(Systen)</key>
+    <key>Themes (Systen)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(System)</string>
+        <string>Themes (System)</string>
     </dict>
 
     <key>Intelliborn</key>
@@ -48,7 +48,7 @@
     <key>CarrierBundle</key>
     <dict>
         <key>Rename</key>
-        <string>Carrier_Bundles</string>
+        <string>Carrier Bundles</string>
     </dict>
 
     <key>Messages</key>
         <string>Messaging</string>
     </dict>
 
-    <key>Themes_(Locksceen)</key>
+    <key>Themes (Locksceen)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(LockScreen)</string>
+        <string>Themes (LockScreen)</string>
     </dict>
 
-    <key>Themes_(Lockscree)</key>
+    <key>Themes (Lockscree)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(LockScreen)</string>
+        <string>Themes (LockScreen)</string>
     </dict>
 
-    <key>Themes_(Losckscreen)</key>
+    <key>Themes (Losckscreen)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(LockScreen)</string>
+        <string>Themes (LockScreen)</string>
     </dict>
 
-    <key>Themes_(Video)</key>
+    <key>Themes (Video)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(Videos)</string>
+        <string>Themes (Videos)</string>
     </dict>
 
     <key>Utilites</key>
         <string>Utilities</string>
     </dict>
 
-    <key>Themes_(Lockscreen)</key>
+    <key>Themes (Lockscreen)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(LockScreen)</string>
+        <string>Themes (LockScreen)</string>
     </dict>
 
-    <key>Themes_(Complet)</key>
+    <key>Themes (Complet)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(Complete)</string>
+        <string>Themes (Complete)</string>
     </dict>
     
-    <key>Themes_(Widgets)</key>
+    <key>Themes (Widgets)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(Addons)</string>
+        <string>Themes (Addons)</string>
     </dict>
 
     <key>Wallpapers</key>
         <string>Tweaks</string>
     </dict>
 
-    <key>Tweaks_2.0</key>
+    <key>Tweaks 2.0</key>
     <dict>
         <key>Rename</key>
-        <string>Tweaks_(2.0)</string>
+        <string>Tweaks (2.0)</string>
     </dict>
 
-    <key>Tweaks_2.1</key>
+    <key>Tweaks 2.1</key>
     <dict>
         <key>Rename</key>
-        <string>Tweaks_(2.1)</string>
+        <string>Tweaks (2.1)</string>
     </dict>
 
-    <key>Tweaks_2.2</key>
+    <key>Tweaks 2.2</key>
     <dict>
         <key>Rename</key>
-        <string>Tweaks_(2.2)</string>
+        <string>Tweaks (2.2)</string>
     </dict>
 
-    <key>Tweaks_3.0</key>
+    <key>Tweaks 3.0</key>
     <dict>
         <key>Rename</key>
-        <string>Tweaks_(3.0)</string>
+        <string>Tweaks (3.0)</string>
     </dict>
     
-    <key>SBSettings_Addons</key>
+    <key>SBSettings Addons</key>
     <dict>
         <key>Rename</key>
-        <string>Addons_(SBSettings)</string>
+        <string>Addons (SBSettings)</string>
     </dict>
     
-    <key>LockInfo_Addons</key>
+    <key>LockInfo Addons</key>
     <dict>
         <key>Rename</key>
-        <string>Addons_(LockInfo)</string>
+        <string>Addons (LockInfo)</string>
     </dict>
     
-    <key>App_Addons</key>
+    <key>App Addons</key>
     <dict>
         <key>Rename</key>
         <string>Addons</string>
     </dict>
     
-    <key>App_Addons_(Iconoclasm)</key>
+    <key>App Addons (Iconoclasm)</key>
     <dict>
         <key>Rename</key>
-        <string>Addons_(Iconoclasm)</string>
+        <string>Addons (Iconoclasm)</string>
     </dict>
     
-    <key>BossPaper_Addons</key>
+    <key>BossPaper Addons</key>
     <dict>
         <key>Rename</key>
-        <string>Addons_(BossPaper)</string>
+        <string>Addons (BossPaper)</string>
     </dict>
     
-    <key>Lockinfo_Addons</key>
+    <key>Lockinfo Addons</key>
     <dict>
         <key>Rename</key>
-        <string>Addons_(LockInfo)</string>
+        <string>Addons (LockInfo)</string>
     </dict>
 
-    <key>Dictionaries_(Hunspell)</key>
+    <key>Dictionaries (Hunspell)</key>
     <dict>
         <key>Rename</key>
         <string>Dictionaries</string>
         <string>Books</string>
     </dict>
 
-    <key>Themes_(WinterBoard)</key>
+    <key>Themes (WinterBoard)</key>
     <dict>
         <key>Rename</key>
         <string>Themes</string>
     </dict>
 
-    <key>Themes_(Weather)</key>
+    <key>Themes (Weather)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(Apps)</string>
+        <string>Themes (Apps)</string>
     </dict>
 
-    <key>Themes_(Videos)</key>
+    <key>Themes (Videos)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(Apps)</string>
+        <string>Themes (Apps)</string>
     </dict>
 
-    <key>Themes_(SMS)</key>
+    <key>Themes (SMS)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(Apps)</string>
+        <string>Themes (Apps)</string>
     </dict>
 
-    <key>Themes_(iPad)</key>
+    <key>Themes (iPad)</key>
     <dict>
         <key>Rename</key>
         <string>Themes</string>
     </dict>
 
-    <key>Themes_(Dock)</key>
+    <key>Themes (Dock)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(SpringBoard)</string>
+        <string>Themes (SpringBoard)</string>
     </dict>
 
-    <key>Themes_(Icy)</key>
+    <key>Themes (Icy)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(Apps)</string>
+        <string>Themes (Apps)</string>
     </dict>
 
-    <key>Themes_(Dialer)</key>
+    <key>Themes (Dialer)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(Apps)</string>
+        <string>Themes (Apps)</string>
     </dict>
 
-    <key>Themes_(Battery)</key>
+    <key>Themes (Battery)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(LockScreen)</string>
+        <string>Themes (LockScreen)</string>
     </dict>
 
-    <key>Themes_(SYSTEM)</key>
+    <key>Themes (SYSTEM)</key>
     <dict>
         <key>Rename</key>
-        <string>Themes_(System)</string>
+        <string>Themes (System)</string>
     </dict>
 
     <key>WebApps</key>
     <dict>
         <key>Rename</key>
-        <string>Site-Specific_Apps</string>
+        <string>Site-Specific Apps</string>
     </dict>
 
     <key>FontSwap</key>
         <string>Addons (FontSwap)</string>
     </dict>
 
-    <key>Cydgets_(Lock)</key>
+    <key>Cydgets (Lock)</key>
     <dict>
         <key>Rename</key>
-        <string>Addons_(Cydget)</string>
+        <string>Addons (Cydget)</string>
     </dict>
 </dict>
 
index e98ac80745f9f42ff68bed5707daa75aa305dbcd..da758d3d7f9713e3f65e7d80e94acc4535ddcc7a 100644 (file)
@@ -1974,8 +1974,6 @@ struct PackageNameOrdering :
 - (void) dealloc {
     if (source_ != nil)
         [source_ release];
-    if (section$_ != nil)
-        [section$_ release];
 
     if (latest_ != nil)
         [latest_ release];
@@ -2251,7 +2249,7 @@ struct PackageNameOrdering :
         if (section_.empty())
             return nil;
 
-        std::replace(section_.data(), section_.data() + section_.size(), ' ', '_');
+        std::replace(section_.data(), section_.data() + section_.size(), '_', ' ');
         NSString *name(section_);
 
       lookup:
@@ -2261,7 +2259,7 @@ struct PackageNameOrdering :
                 goto lookup;
             }
 
-        section$_ = [[name stringByReplacingCharacter:'_' withCharacter:' '] retain];
+        section$_ = name;
     } return section$_;
 }