Author Topic: Pkg Manager - Double Entries [solved]  (Read 2406 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Pkg Manager - Double Entries [solved]
« on: April 12, 2007, 11:47:46 am »
I downloaded both pdaxrom feeds tar.tgz to my CF card and following meanie's instructions to set up a local feed.
Quote
To create your own custom local feed, you can download the beta1 feed.tar.gz files for the generic and C3x00 specific one.

You can then merge the two feeds (and any additional ones) onto your internal MicroDrive or one of the external cards. Just extract the files into a directory (extract the 7x0 archive first and then the C3100 one on top of it to eliminate the duplicates). Then use ipkg-make-index to generate a new Packages file for the feed.
When I updated the package manager, I have many duplicate entries. How do I remove these duplicates from the package manager?

I opened the "Packages" file in a text editor and there are 3 separate "packages" files in one. How did this happen?
I deleted the "Packages" file and re-created it with ipkg-make-index, but it still has 3 packages lists in one file.
What I mean by 3 in one, is when you get to the last package in the alphabet "zkbdd", it starts over again with "abiword". It does this 2 times, to add up to 3 complete lists.

I checked my packages folder, and there are no duplicate filenames.

I only have one feed listed on the Settings page, I removed the others to try to remove the duplicates.
local-cf file:///mnt/cf/feed

EDIT:
See post #4 (somehow this problem got fixed)
https://www.oesf.org/forums/index.php?showt...ndpost&p=158666
« Last Edit: April 13, 2007, 02:16:00 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Pkg Manager - Double Entries [solved]
« Reply #1 on: April 12, 2007, 04:20:19 pm »
Since no one has come up with a solution for this, I decided to edit this "Packages" file manually.
Using textpad, which opens and saves UNIX files, on my windows box, I search for duplicates and delete the entries, one by one.
This will probably take me a week to do, since I only have patience to do about 50 entries in one sitting.
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Armagon

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • http://
Pkg Manager - Double Entries [solved]
« Reply #2 on: April 12, 2007, 07:02:27 pm »
Quote
Since no one has come up with a solution for this, I decided to edit this "Packages" file manually.
Using textpad, which opens and saves UNIX files, on my windows box, I search for duplicates and delete the entries, one by one.
This will probably take me a week to do, since I only have patience to do about 50 entries in one sitting.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=158653\"][{POST_SNAPBACK}][/a][/div]

I'm afraid I don't know much about the package database, and really don't know the answer to your question.

I am worried, though, that all your work might be lost when you update the package list -- it is worth testing.

If entries are just one line each, you may be able to do something like this from a linux command line.  (I don't know if the Z has these tools installed, but you'll find them on any desktop system.)

cat PackageList | sort | uniq > NewPackageList

Sorry I can't be of more assistance.
Sharp Zaurus SL-C1000 -- 2 GB SD Card -- Zippy Slim Mini Keyboard -- Loving pdaXii13!

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Pkg Manager - Double Entries [solved]
« Reply #3 on: April 12, 2007, 07:18:52 pm »
Thanks for your reply Armagon.
I'm looking at the "Packages" file, not "PackageList" file
I guess this is just a bug that everyone puts up with, and there is no solution.
Having all the packages listed in triplicate makes for a lot more scrolling in the GUI package manager.

EDIT:
I deleted the "Packages" file from my CF card once more and waited awhile.
I did another "ipkg-make-index" and updated the package manager, and this time all the duplicates were gone!
Some files are missing from the list in the package manager, but I'm glad the dupes are now gone.
I updated the title to this thread.
« Last Edit: April 13, 2007, 02:14:12 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers