Recently I was thinking about how local systems are the same thing as vector bundles with flat connection, and how representations of the fundamental group gave rise to vector bundles. This got me thinking about how we get a handle on line bundles in general, and made me suspect that I don't understand them as well as I should, so I thought I'd ask a novice question about them. In brief: one has two different ways of regarding line bundles on a smooth complex algebraic variety, as a set of transition functions and as an equivalence class of Weil divisors, and I want to see how the two relate.
Let's break it down and be very explicit: $E$ is an elliptic curve over $\mathbb{C}$ with (topological) fundamental group generated by $a, b$. I've chosen $E$ because I know all about its Picard group. A one-dimensional local system on $E$ corresponds to an assignation of nonzero complex numbers $\lambda, \mu$ to $a, b$, and by tensoring this setup with $\mathcal{O}$ I get the sheaf of sections of a certain line bundle, whose transition functions in an appropriate set of trivialisations should be $\lambda$ and $\mu$. I've convinced myself that different choices of $\lambda$ and $\mu$ give me non-isomorphic bundles. Now, if I fix a distinguished point $P_0$ of $E$, choosing $d \in \mathbb{Z}$ and $P \in E$ is the same thing as choosing an isomorphism class of line bundles on $E$, whose associated divisor will be $P + (d-1)P_0$.
So how are $\lambda$, $\mu$ and $P, d$ related? Is there a nice formula? What about for higher genus curves? Am I just confused?