forger
June 13th, 2008, 06:12 PM
I'm trying to make a script that grabs all the package listings.
example:
I wget http://archive.ubuntu.com/ubuntu/dists/dapper/main/binary-i386/Packages.bz2 and extract it, then manage it with sed to transform it into an sqlite insert command.
But there's one problem, not all packages contain
Replaces:
Provides:
Depends:
Recommends:
Suggests:
Conflicts:
and
Task:
How can I "search" for them and add them in order, so that sed can grab them and add empty values in their place?
Attached some package listed in the above mentioned url.
example:
I wget http://archive.ubuntu.com/ubuntu/dists/dapper/main/binary-i386/Packages.bz2 and extract it, then manage it with sed to transform it into an sqlite insert command.
But there's one problem, not all packages contain
Replaces:
Provides:
Depends:
Recommends:
Suggests:
Conflicts:
and
Task:
How can I "search" for them and add them in order, so that sed can grab them and add empty values in their place?
Attached some package listed in the above mentioned url.