diff --git a/README.md b/README.md index b0f08df..6a83db6 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ Minimal package manager. ## Developing -If you are working with piratpkg make sure to change `ROOT` in `piratpkg.conf` to your needs, and change `DEFAULT_CONFIG_FILE` in `include/piratpkg.h` to the path of your config file. Or pass the `--config` argument to `piratpkg` \ No newline at end of file +figure it out ig \ No newline at end of file diff --git a/include/piratpkg.h b/include/piratpkg.h index 0bd30cf..c3f6f00 100644 --- a/include/piratpkg.h +++ b/include/piratpkg.h @@ -20,7 +20,7 @@ #ifndef _DEV #define DEFAULT_CONFIG_FILE "/etc/piratpkg/piratpkg.conf" #else -#define DEFAULT_CONFIG_FILE "piratpkg.conf" +#define DEFAULT_CONFIG_FILE "piratpkg.conf.test" #endif /* _DEV */ #define VERSION_STRING "piratpkg 1.0.0-alpha" diff --git a/piratpkg.conf b/piratpkg.conf index 48871c0..1f6ff5c 100644 --- a/piratpkg.conf +++ b/piratpkg.conf @@ -1,8 +1,5 @@ -ROOT=/home/kevin/Projects/piratpkg/test - +ROOT=/ REPO_BRANCHES=core testing DEFAULT_BRANCH=core - -# Branches -CORE=repo/core/ -TESTING=repo/testing/ \ No newline at end of file +CORE=/etc/piratpkg/repo/core/ +TESTING=/etc/piratpkg/repo/testing/ diff --git a/piratpkg.conf.test b/piratpkg.conf.test new file mode 100644 index 0000000..48871c0 --- /dev/null +++ b/piratpkg.conf.test @@ -0,0 +1,8 @@ +ROOT=/home/kevin/Projects/piratpkg/test + +REPO_BRANCHES=core testing +DEFAULT_BRANCH=core + +# Branches +CORE=repo/core/ +TESTING=repo/testing/ \ No newline at end of file