summaryrefslogtreecommitdiff
path: root/build-pkg
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-03-19 17:23:42 (GMT)
committerMichael Schroeder <mls@suse.de>2014-03-19 17:23:42 (GMT)
commit16c4499124fa38c3f5c314f7f2d6cc8f0bc08c58 (patch)
treee00af18d860ddd152ac956f3e82c951d06e51983 /build-pkg
parent75010a324e5a6113bd409e336857626fb985a68e (diff)
downloadobs-build-16c4499124fa38c3f5c314f7f2d6cc8f0bc08c58.tar.gz
obs-build-16c4499124fa38c3f5c314f7f2d6cc8f0bc08c58.tar.xz
refactor part 3: split binary package handling into build-pkg-* files
Diffstat (limited to 'build-pkg')
-rw-r--r--build-pkg56
1 files changed, 56 insertions, 0 deletions
diff --git a/build-pkg b/build-pkg
new file mode 100644
index 0000000..ae563c6
--- /dev/null
+++ b/build-pkg
@@ -0,0 +1,56 @@
+#
+# binary package specific functions for the build script
+#
+# (C) 2014 SUSE, Inc
+#
+
+for i in rpm deb arch ; do
+ . "$BUILD_DIR/build-pkg-$i"
+done
+
+pkg_initdb() {
+ pkg_initdb_$PSUF "$@"
+}
+
+pkg_get_installed() {
+ pkg_get_installed_$PSUF "$@"
+}
+
+pkg_set_packageid() {
+ pkg_set_packageid_$PSUF "$@"
+}
+
+pkg_install() {
+ pkg_install_$PSUF "$@"
+}
+
+pkg_verify_installed() {
+ pkg_verify_installed_$PSUF "$@"
+}
+
+pkg_erase() {
+ pkg_erase_$PSUF "$@"
+}
+
+pkg_cumulate() {
+ pkg_cumulate_$PSUF "$@"
+}
+
+pkg_finalize() {
+ pkg_finalize_$PSUF "$@"
+}
+
+pkg_preinstall() {
+ pkg_preinstall_$PSUF "$@"
+}
+
+pkg_runscripts() {
+ pkg_runscripts_$PSUF "$@"
+}
+
+pkg_autodetect_type() {
+ PSUF=
+ test -e $BUILD_ROOT/.init_b_cache/rpms/rpm.rpm && PSUF=rpm
+ test -e $BUILD_ROOT/.init_b_cache/rpms/dpkg.deb && PSUF=deb
+ test -e $BUILD_ROOT/.init_b_cache/rpms/pacman.arch && PSUF=arch
+}