I tried your suggested layout of my repo folder:
# ls -R noarch/
noarch/:
my-aix-99.0.0-125_99.0.0-126.noarch.drpm my-aix-99.0.0-125.noarch.rpm
I then executed:
[CODE]# createrepo .
Spawning worker 0 with 1 pkgs
Workers Finished
Gathering worker results
Saving Primary metadata
Saving file lists metadata
Saving other metadata[/CODE]
# ls repodata/
filelists.xml.gz other.xml.gz primary.xml.gz repomd.xml
Doesn’t look like it recognized the delta RPM.
[CODE]# zypper se --details my-aix
Loading repository data…
Reading installed packages…
S | Name | Type | Version | Arch | Repository
–±-------------±--------±--------------------------------------±-------±----------
i | my-aix | package | 99.0.0-125 | noarch | tr[/CODE]
When I added the --deltas option it created an empty prestodelta.xml.gz. Createrepo does not recognize the delta rpm with this file layout.
FYI: I’m on SLES 11 SP3
So I tried something else. In order to use [FONT=Courier New]createrepo --deltas[/FONT] I had to re-arrange my folder layout:
[CODE]# ls -R.
.:
drpms noarch
./drpms:
my-aix-99.0.0-125_99.0.0-126.noarch.drpm
./noarch:
my-aix-99.0.0-125.noarch.rpm
createrepo --deltas .
Spawning worker 0 with 1 pkgs
Workers Finished
Gathering worker results
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Saving delta metadata
#zcat repodata/prestodelta.xml.gz
<?xml version="1.0" encoding="UTF-8"?>
drpms/my-aix-99.0.0-125_99.0.0-126.noarch.drpm
my-aix-99.0.0-125-beac8cc49fb8363d0eec60581ed00df59c1110
63681
5cb36d09b28582fa37a88a066b4c7aea659bc20e
[/CODE]
But zypper still does not recognize the deltas.
[CODE]# zypper se --details my-aix
Loading repository data…
Reading installed packages…
S | Name | Type | Version | Arch | Repository
–±-------------±--------±--------------------------------------±-------±----------
i | my-aix | package | 99.0.0-125 | noarch | tr[/CODE]
Note that createrepo generated a prestodelta.xml.gz.