Add missing leading underscores to names passed to rpmMkdirPath()
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 28 Feb 2008 10:46:45 +0000 (12:46 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 28 Feb 2008 10:46:45 +0000 (12:46 +0200)
- mostly cosmetical, leading to slightly misleading error messages

lib/psm.c
tools/rpmcache.c

index 022b96c..e71a9e8 100644 (file)
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -351,14 +351,14 @@ fi->fmd5s = hfd(fi->fmd5s, RPM_FORCEFREE_TYPE);
     }
 
     _sourcedir = rpmGenPath(rpmtsRootDir(ts), "%{_sourcedir}", "");
-    rpmrc = rpmMkdirPath(_sourcedir, "sourcedir");
+    rpmrc = rpmMkdirPath(_sourcedir, "_sourcedir");
     if (rpmrc) {
        rpmrc = RPMRC_FAIL;
        goto exit;
     }
 
     _specdir = rpmGenPath(rpmtsRootDir(ts), "%{_specdir}", "");
-    rpmrc = rpmMkdirPath(_specdir, "specdir");
+    rpmrc = rpmMkdirPath(_specdir, "_specdir");
     if (rpmrc) {
        rpmrc = RPMRC_FAIL;
        goto exit;
index 23f08c0..9d372ad 100644 (file)
@@ -554,7 +554,7 @@ main(int argc, char *argv[])
     if (!(s && *s))
        rpmrc = RPMRC_FAIL;
     else
-       rpmrc = rpmMkdirPath(s, "cache_dbpath");
+       rpmrc = rpmMkdirPath(s, "_cache_dbpath");
     s = _free(s);
     if (rpmrc != RPMRC_OK) {
        fprintf(stderr, _("%s: %%{_cache_dbpath} macro is mis-configured.\n"),