Build yum indices
authorJakub Skoczen <jakub@indexdata.dk>
Tue, 6 Jul 2010 14:36:02 +0000 (16:36 +0200)
committerJakub Skoczen <jakub@indexdata.dk>
Tue, 6 Jul 2010 14:36:02 +0000 (16:36 +0200)
update-archive/update-yum-archve.sh

index cd35d91..40f0f3e 100755 (executable)
@@ -55,7 +55,6 @@ for vdist in centos/5.5 rhel/5.5; do
                                                for f in $distdir/SRPMS/*.src.rpm; do
                                                        if test -f $f; then                                                             
                                                                ln -sf $f $d/SRPMS/
-                                                               has_packages=true
                                                        fi
                                                done
                                        fi
@@ -63,10 +62,12 @@ for vdist in centos/5.5 rhel/5.5; do
                                                mkdir -p $d/${arch}/Packages
                                                for f in $distdir/RPMS/${arch}/*.rpm $distdir/RPMS/noarch/*.rpm; do
                                                    if test -f $f; then
-                                                       ln -sf $f $d/${arch}/Packages/
+                                                           ln -sf $f $d/${arch}/Packages/
                                                        has_packages=true
                                                    fi
                                                done
+            createrepo --update $d/${arch}
+            gpg --detach-sign --armor $d/${arch}/repodata/repomd.xml
                                        done
                                fi
                        fi