Heat oil in a wok and add the fennel seeds and curry leaves. Saute the onions until they start turning brown. Add the ginger garlic paste.