Estimated read time: 1 minutes
Estimated read time: 1 minutes
Estimated read time: 1 minutes
just a draft about how to re-call a plugin from an other plugin in the setup:
extern GList *plugin_list;here we call the loadsource plugin from an another pluginint i; plugin_t *plugin;
for (i=0; i
name, "loadsource")) plugin->run(config); }
Estimated read time: 1 minutes
$ cg-clone http://www.kernel.org/pub/scm/git/git.gitthis will fetch a git repo for you, as dr get does not works yet (i don't see if this is planned or not), but then do a
cd git; dr changes --last=5and it really works fine :)
Estimated read time: 1 minutes
during coding the setup, i noticed some strange behaviours, i debugged then for a long time ;)
so to learn from my faults:
- strcat does not accepts a NULL pointer as a dest char*
- getenv() just gives you a pointer, you have to strdup() it if you want to modify the value
an other thing: i forgot again and again what's the difference between
stepand
nextin gdb:
- setp executes the current line of the program and stops on the next statement to be executed
- next is like step, however, if the current line of the program contains a function call, it executes the function and stops at the next line
ah, and if you want to execute the whole code line by line from the begining, you'll need
break 1and then the usual
run
Estimated read time: 1 minutes
yet another setup update :)
a short TODOlist what have to be done:
- handling package installation errors
- handling category order
- handling possibly required cd changes
- postconf: calling the unchanged *config stuff
everything else seems to be completed! :)
Estimated read time: 1 minutes
Estimated read time: 1 minutes
darcs is not too funny, it's well documented so if you once read the documentation, almost nothing unexpected will happen. but today... i've found a very nice new feature :)
you have a repo. inside the repo there are dirs. some of them are not "dr add"ed. if you run dr rec/what/etc in that dirs, it will find the "partent" repo, and runs the command on it. but you can create a new repo in that not-added dir, and then dr will work on this new repo. nice, eh? :)
Estimated read time: 1 minutes
Estimated read time: 1 minutes