]> git.pld-linux.org Git - packages/poldek.git/blame - poldek-setenv-null.patch
initial tool to ease common operations like:
[packages/poldek.git] / poldek-setenv-null.patch
CommitLineData
15f4d0b4
AM
1--- poldek-0.30.1/pkgdir/pkgdir.c~ 2014-03-25 23:32:25.000000000 +0100
2+++ poldek-0.30.1/pkgdir/pkgdir.c 2015-09-14 14:16:12.282109741 +0200
3@@ -274,7 +274,8 @@ const struct pkgdir_module *find_module(
4 static void env_source(const struct source *src, const char *idxpath)
5 {
6 setenv("POLDEK_SOURCE_PATH", idxpath, 1);
7- setenv("POLDEK_SOURCE_PREFIX", src->pkg_prefix, 1);
8+ if (src->pkg_prefix)
9+ setenv("POLDEK_SOURCE_PREFIX", src->pkg_prefix, 1);
10 setenv("POLDEK_SOURCE_TYPE", src->type, 1);
11 if (src->name)
12 setenv("POLDEK_SOURCE_NAME", src->name, 1);
This page took 0.521519 seconds and 4 git commands to generate.