use source package name instead of component when reading .changes
authored_ <bartosh@gmail.com>
Tue, 11 Dec 2007 00:38:05 +0000 (00:38 +0000)
committered_ <bartosh@gmail.com>
Tue, 11 Dec 2007 00:38:05 +0000 (00:38 +0000)
trunk/scripts/build.sh

index 898c689..1d1e52f 100755 (executable)
@@ -37,8 +37,10 @@ for build_variant in n770 n8x0 ; do
                DEB_BUILD_OPTIONS=$build_variant dpkg-buildpackage -rfakeroot -us -uc -sa -D || exit
                
                # install results
+               srcname=`grep Source: debian/control |cut -f2 -d' '`
                grep '^ [a-f0-9]\+ [0-9]\+ [a-z]\+ [a-z]\+ .\+.deb' \
-                       ../${component}_${NEW_VER}_*.changes | cut -f6 -d' '|sed -e 's/^/..\//' | xargs fakeroot dpkg -i || exit
+                       ../${srcname}_${NEW_VER}_*.changes | cut -f6 -d' '|sed -e 's/^/..\//' \
+                               | xargs fakeroot dpkg -i || exit
        done
        cd ..
 done